Charles, perseverence furthers as the good book says...
http://www.openicon.org/feeds/zanadu.svg did you use Opera or ff? ff I guess... http://www.peepo.co.uk is a better example for firefox regards Jonathan Chetwynd [EMAIL PROTECTED] http://www.openicon.org/ +44 (0) 20 7978 1764 On 14 Aug 2008, at 08:32, cwflamont wrote: > Jonathan Chetwynd wrote: > >> you're not exactly explicit about what your intentions might be.... >> however... >> http://www.openicon.org/feeds/zanadu.svg >> may demonstrate the type of thing... > > (The url does not seem to work.) > > Yes, I could have made myself more clear. > > My problem is that while the first example below works in Ff, Opera > and IE, the second works in Ff only, and the third not at all. > > Generally I prefer to define elements in <defs/> and then deploy them > with <use/>. Is that not possible when event handling is involved? > ___________________________________ > > <?xml version="1.0"?> > > <svg > version="1.1" > xmlns="http://www.w3.org/2000/svg" > width="100" > height="100" >> > > <script type="text/javascript"> > <![CDATA[ > > function over(evt) > { > var obj = evt.target; > obj.setAttribute('fill', "blue"); > } > > function out(evt) > { > var obj = evt.target; > obj.setAttribute('fill', "green"); > } > > ]]> > </script> > > <rect > fill = "green" > x = "25" > y = "25" > width ="50" > height = "50" > rx = "10" > ry = "10" > onmouseover = "over(evt)" > onmouseout = "out(evt)" > /> > > </svg> > _________________________________________________ > > <?xml version="1.0"?> > > <svg > version="1.1" > xmlns="http://www.w3.org/2000/svg" > xmlns:xlink="http://www.w3.org/1999/xlink" > width="100" > height="100" >> > > <script type="text/javascript"> > <![CDATA[ > > function over(evt) > { > var obj = evt.target; > obj.setAttribute('fill', "blue"); > } > > function out(evt) > { > var obj = evt.target; > obj.setAttribute('fill', "green"); > } > > ]]> > </script> > > <defs> > <rect > id = "Button" > fill = "green" > x = "25" > y = "25" > width = "50" > height = "50" > rx = "10" > ry = "10" > onmouseover = "over(evt)" > onmouseout = "out(evt)" > /> > </defs> > > <use > xlink:href = "#Button" > /> > > </svg> > ____________________________________________ > > <?xml version="1.0"?> > > <svg > version="1.1" > xmlns="http://www.w3.org/2000/svg" > xmlns:xlink="http://www.w3.org/1999/xlink" > width="100" > height="100" >> > > <script type="text/javascript"> > <![CDATA[ > > function over(evt) > { > var obj = evt.target; > obj.setAttribute('fill', "blue"); > } > > function out(evt) > { > var obj = evt.target; > obj.setAttribute('fill', "green"); > } > > ]]> > </script> > > <defs> > <rect > id = "Button" > fill = "green" > x = "25" > y = "25" > width = "50" > height = "50" > rx = "10" > ry = "10" > /> > </defs> > > <g > onmouseover = "over(evt)" > onmouseout = "out(evt)" >> > <use > xlink:href = "#Button" > /> > </g> > > </svg> > ___________________________________________ > > > > > > > ------------------------------------ > > ----- > To unsubscribe send a message to: [EMAIL PROTECTED] > -or- > visit http://groups.yahoo.com/group/svg-developers and click "edit > my membership" > ----Yahoo! Groups Links > > > [Non-text portions of this message have been removed] ------------------------------------ ----- To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ----Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/svg-developers/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

