Bjoern Hoehrmann wrote:
> 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.
Thanks very much Bjoern, that works perfectly (although I do not
understand why it needs to be done that way):
http://www.gateho.nildram.co.uk/temp/graphics/SVG/Slider_Crank_script.html
------------------------------------
-----
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/