Technical Discussion
  >> Web Design / HTML / Web hosting Forum


Register (or login) on our website and you will not see this ad.


  Print Thread
Standard User camieabz
(sensei) Thu 31-Jan-13 15:39:24
Print Post

xlink within SVG path tags?


[link to this post]
 
I have some html files with embedded svg code (coordinates).

In one of these files, there are several group elements, and I can link to a given group with mouse-over styling and all that.

Within each group, there are several paths, making up image content. Obviously my placing of the xlink means that all paths are clickable when applying it to the group tag (I have the xlink after the group tag, but before the first path tag.)

I would like to be able to have any or all paths contain separate xlinks.

<svg>
<g>
<path1>link1</path1>
<path2>link2</path2>
</g>
</svg>

I know that's not the code, but it makes more sense in that format to demonstrate what I want to achieve.

Do I need to insert span tags?

~ Camieabz ~

All Connection Data ~ Some plusnet links

mod'er·a'tion n.
Synonyms: temperance, restraint, modesty.
Standard User camieabz
(sensei) Thu 31-Jan-13 15:59:03
Print Post

Re: xlink within SVG path tags?


[re: camieabz] [link to this post]
 
S,ok I figured it out. Surround the path tags with the xlink tag.

Something along the lines of:

<svg>
<g>
<xlink1><path1></xlink1>
<xlink2><path2></xlink2>
</g>
</svg>

~ Camieabz ~

All Connection Data ~ Some plusnet links

mod'er·a'tion n.
Synonyms: temperance, restraint, modesty.
Standard User micksharpe
(eat-sleep-adslguide) Thu 31-Jan-13 16:47:48
Print Post

Re: xlink within SVG path tags?


[re: camieabz] [link to this post]
 
Erm... Yes. No. Maybe. crazy

tongue

'Sir, please,' she said ... 'Will you not share your wisdom with us?'
'I have no wisdom,' he told her.
'Your experiences, then?'
'They have been trivial, uninteresting, and full of error.'
Ian M. Banks - Feersum Endjinn
.
It Ought to be Easy | Greasemonkey scripts

Edited by micksharpe (Thu 31-Jan-13 16:51:20)


Register (or login) on our website and you will not see this ad.

  Print Thread

Jump to