myElement.setAttributeNS(null,"fill", "blue") should do the trick.

bader houmad wrote:
Hi

I want to change the attributes of an element, but not all of them: (ex: myElement is a rectangle, "fill:BLACK" "stroke:RED"and "stroke-width:15")

myElement.setAttributeNS(null,"style", "fill:BLUE");

this way myRectangle becomes BLUE but its stroke is set by default to black and stroke-width to zero.

is there a method to change only the "fill" for example?

thanks

Bader


------------------------------------------------------------------------
MSN Hotmail : choisissez votre adresse @hotmail.fr <http://g.msn.com/8HMBFRFR/2731??PS=47575>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to