--- In [email protected], "Thomas Steiner" 
<[EMAIL PROTECTED]> wrote:
>
> Hi Michel,
> 
> >  * add additive="sum" to your animated elements

For this first solution keep your script to put hands in position by 
current time


> >  * set time for svg to current date as
> >
> >  var time = new Date()
> >  var time_seconds = time.getHours()*3600 + time.getMinutes()*60 +
> >  time.getSeconds()
> >  evt.target.ownerDocument.rootElement.setCurrentTime
(time_seconds)
> >
> >  With this solution you can have problems if you have other
> >  animations in your svg
> 
> Thanks a lot for your answer, but what happens then? My hour hand 
and
> second hand needs to know it's initial angle. How? Here you told 
just
> the document's root elements the current time. What did I miss 
here?

When you set current time, animation timeline will be this time and -
 miracle - your hands will be in good position !

see
http://pilat.free.fr/tutorial2_eng/example/setCurrentTime.svg
for example


Michel



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

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

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