In comp.lang.javascript message <u6ECi.116300$rX4.48684@pd7urf2no>, Sun,
2 Sep 2007 19:25:14, Simon Wigzell <si**********@shaw.caposted:
>I have a slide show that uses setInterval to move through the iamges. I
would like to offer the visitor the option of changing the speed as it is
running. I see an example of this here
http://www.sidney.ca/dynamic/Page125...ageMode=Hybrid but cannot find
the source for it.
I could have it in a form and refresh the page but I would rather do it
dynamically like this example. Any ideas?
Clear the timeout without displaying, and start another.
Or use setTimeout or setInterval set to (say) one second as a "wake-up",
and, at each arousal, consult a rate control to see if enough time has
elapsed.
If you can afford to change the rate only after the current wait, just
read the new timeout from a control each time.
It's a good idea to read the newsgroup c.l.j and its FAQ. See below.
--
(c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v6.05 IE 6
news:comp.lang.javascript FAQ <URL:http://www.jibbering.com/faq/index.html>.
<URL:http://www.merlyn.demon.co.uk/js-index.htmjscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/TP/BP/Delphi/jscr/&c, FAQ items, links.