--- In [email protected], "Kurt Martin" <[EMAIL PROTECTED]> wrote:


> I have been so engrossed about getting this done on time, I just
realized
> that the color is set by a style attribute. Now a totally different
quandry:
> how can I only access reset the color in the style attribute? 

You can script that as follows to simply set the stroke color as an
inline style:

function setStrokeStyle (elementId, strokeColor) {
  var element = document.getElementById(elementId);
  if (element != null) {
    if (element.style && typeof element.style.setProperty !=
'undefined') {
      element.style.setProperty('stroke', strokeColor, '');
    }
  }
}

Then call as e.g.
  <item onactivate="setStrokeStyle('elementid', 'green');">item
text</item>





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