I am trying to change stroke colors for particular elements in my 
SVG with no success. Here is my javascript code:

   function changeStrokeColor(e)
   {
        document.getElementById("MSSA").setAttribute('stroke', e 
== "MSSA" ? 'red' : 'green');
        document.getElementById("BFRJAM").setAttribute('stroke', e 
== "BFRJAM" ? 'red' : 'gray');
        document.getElementById("NOT22").setAttribute('stroke', e 
== "NOT22" ? 'red' : 'gray');
        document.getElementById("NOT12").setAttribute('stroke', e 
== "NOT12" ? 'red' : 'gray');
        document.getElementById("HALT2").setAttribute('stroke', e 
== "HALT2" ? 'red' : 'gray');
   }

Here is my javscript call:

<item onactivate="changeStrokeColor('MSSA')">MSSA</item>

I am relatively new to SVG, so any help would be greatly appreciated.







-----
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/

<*> 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