--- In [email protected], "Neiderer, Andrew \(Civ,
ARL/CISD\)" <[EMAIL PROTECTED]> wrote:

> <rect id="r1c0" x="921.875" y="0.0" width="92.175" height="49.609"
> 
>          class="green" fill-opacity="0.05">
> 
>   <animate attributeName="fill-opacity" from="1.0" to="0.05"
> 
>                  dur="5s"/
> 
> </rect>
> 
>  
> 
> The result of an update request may be
> 
>   r1c0,red,0.20
> 
> The red color has a fill-opacity of 0.20.

> do I need to assign an id to a sub-element (<animate> above) ? ???

If you want to use script to change attributes of the animate element
then you could use e.g.
  var rect = document.getElementById('r1c0');
  if (rect != null) {
    rect.setAttribute('class', 'red');
    var animate =
rect.getElementsByTagNameNS('http://www.w3.org/2000/svg',
'animate').item(0);
    if (animate != null) {
      animate.setAttribute('to', '0.20');
    }
  }





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