setProperty would probably work. I will give it a try. On 9/8/06, Martin Honnen <[EMAIL PROTECTED]> wrote: > > --- In [email protected]<svg-developers%40yahoogroups.com>, > "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> > > >
-- Kurt D. Martin 405.343.7116 (c) 405.759.3075 (h) [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/

