Hi couloir007, I don't know for sure about Mozilla but your example will work with Batik, if you add the third parameter to setProperty, also I think that you should access style as a 'property' not as a getter:
svgobj = document.getElementById(id); svgstyle = svgobj.style; svgstyle.setProperty('fill', 'yellow', ''); couloir007 wrote: > > The Code below apparently is an Adobe specific way of setting fill > color. I believe GetStyleData would be the Mozilla equivalent. Not > sure though since I can't get it to work. Does anyone know how to do > this in Mozilla? I've had some limited success altering CSS > attributes, but would like to avoind it if possible. Thank you. > > svgobj = document.getElementById(id); > svgstyle = svgobj.getStyle(); > svgstyle.setProperty('fill', 'yellow'); > > > > > > ----- > 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 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/