* cwflamont wrote:
>This:
>
>http://www.gateho.nildram.co.uk/temp/graphics/SVG/crank_script.html
>
>is supposed appear like this (remember Firefox won't show it):
>
>http://www.gateho.nildram.co.uk/temp/graphics/SVG/crank_smil.html
>
>but 'setInterval()' seems to be calling 'rotation()' only once,
>instead of every 150 ms, as I want it to, and think it should.
You have
timer = setInterval((angle = rotation(angle)), 150);
Here the `(angle = rotation(angle))` will be evaluated, and then the
setInterval function will be called with the result of the evaluation
of the expression and `150` as arguments. If you want it to call the
rotation(...) function repeatedly, you have to wrap the code in a
string or preferably a function ala
timer = setInterval(function(){
(angle = rotation(angle))
}, 150);
I am not sure this will work right away, but it's the right approach.
--
Björn Höhrmann · mailto:[EMAIL PROTECTED] · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/
------------------------------------
-----
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/