Hi James,

 

Your example makes me want to dig up some similar examples of my own
displaying cross browser inconsistencies in how <use> responds to events.

 

In some cases  evt.target seems to refer to the object from which the <use>
had been cloned, in other cases to the clone itself. I have a vague and
possibly imaginary memory of someone telling me that events are not supposed
to work on <use> -- but usually when someone tells me that things aren't
supposed to work the way we would want them to it is someone from Mozilla
who has read the spec more literally that other folks, so this makes me
think my memory is faulty, since you have this working in FF and not
elsewhere. I know I have encountered the most paradoxical and unpleasant
inconsistencies with <use> and events. Fortunately, <replicate> (the future
replacement of <use>) doesn't seem to be plagued with such inconsistencies
;) <tease />

 

Cheers

David

 

From: [email protected] [mailto:[email protected]]
On Behalf Of jamesd
Sent: Wednesday, October 17, 2012 6:54 PM
To: [email protected]
Subject: [svg-developers] Standard Hover Effect

 

  

I am currently using the below to highlight a button using the use element.
It works in Firefox, but not in Chrome or IE.

Could someone show me the proper way to use this action. I need it to be
flexible, meaning not a specific javascript, as I use it on different
instances with different color fills.

<use xlink:href="#go_fill" fill="#2500B8"
onmouseover="evt.target.setAttribute('fill', '#3DFF3D');"
onmouseout="evt.target.setAttribute('fill','#2500B8');"/>

Thanks in advance.

James





[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:
    [email protected] 
    [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/

Reply via email to