Hi,

function reset()
{
  svgRoot.setCurrentTime(0);  // with svgRoot = document.rootElement
}


you could call this function within a customized context menu or 
using a button or whatsoever in your svg

find a sample using setCurrentTime(), getCurrentTime(), 
pauseAnimations() and related methods at:

http://www.zuccaralloo.de/devgroup/content.php#klotski

Regards-
-Heiko



--- In [EMAIL PROTECTED], "Richard Pearman" 
<[EMAIL PROTECTED]> wrote:
> Hi,
> 
> As you know I'm using SVG for a super hero comic called "Dragon 
Knights".
> I'd like to give my readers the ability to replay files without 
downloading
> them again.  However I'm having trouble setting some attributes 
that are
> changed back to their orriginal states.  These are things that have 
been
> changed by SMIL animations and perhaps I have to use SMIL to change 
them
> back but it would be simpler if I could just use JavaScript.
> 
> I have a g that I'd like to restore to opacity="1", a viewBox on an 
svg
> element that needs to be retured to it's orriginal value and 
another g
> element that needs a filter removed.  Can you help me with this 
please?
> 
> Richard Pearman http://www.nucleus.com/~richardp/
> http://www.pixelpalaces.com/



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/1U_rlB/TM
--------------------------------------------------------------------~-> 

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