--- In [email protected], "finbref" <[EMAIL PROTECTED]>
wrote:
You can
* add additive="sum" to your animated elements
* 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
Michel
> Yet Another SVG-Clock, I have troubles initialising it.
> Opera (the only that animates it as I wish) does ignore my lines:
>
> function init(evt) {
> var doku = evt.target;
> var owner = doku.ownerDocument;
>
> var jetzt = new Date();
> var sek = jetzt.getSeconds();
> var min = jetzt.getMinutes();
> var stu = jetzt.getHours();
>
> var z_stu = owner.getElementById("stundenzeiger");
> z_stu.setAttributeNS(null, "transform", "rotate("+
> (30*stu+0.5*min) +",105,105)");
> ...
> }
>
> See the whole SVG at
http://www.fam.tuwien.ac.at/~thomas/test/uhr.svg
> Thanks for help,
> Thomas
>
> PS: Firefox initalizes, but does of course not animate.
>
-----
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/