If I understand what you are trying to do you can also do something like 
this

<g id="Q" fill="red">
<rect x="0" y="0" height="30" width="30" fill="inherit"/>
<rect x="40" y="0" height="30" width="30" fill="inherit"/>
</g>

then later on, with JavaScript, you can say something like
SVGDocument.getElementById("Q").setAttribute("fill", "green")
--or to be more namespace aware, --
SVGDocument.getElementById("Q").setAttributeNS(null,"fill", "green")
--
to dynamically change the fill values of all objects in the <g>

The 'inherit' value takes its cue from the container (<g> or <use>, I think)
that it is in.

There have been times when I wished one could send multiple values through 
this way (like fill1="green" and fill2="red") that could be plopped into 
inheriting elements in the order they are encountered, but I suppose that's 
what scripting is for.

cheers,
David

----- Original Message ----- 
From: "zedkineece" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, August 09, 2006 12:29 PM
Subject: [svg-developers] set attributeName to group?


>I am new to SVG, and would like to know if there is a way similar to
> set attributeName to a group of paths. I am playing around with
> highilighting paths on a schematic, and I can do it for individual
> paths, but haven't got it working for an entire group. Could someone
> point me in the right direction?
>
>
>
>
>
>
> -----
> 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/
 


Reply via email to