By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,382 Members | 1,623 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,382 IT Pros & Developers. It's quick & easy.

Animated GIF - javaScript

P: n/a
Is it possable to stop or pause an animated gif from javaScript
Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Stuart" <gd**@ggg.hgd> wrote in message
news:be**********@news8.svr.pol.co.uk...
Is it possable to stop or pause an animated gif from javaScript


No, the HTML IMG element in the DOM does not have any animation control.
All you can do is change the image displayed and hope that the browser
will play the animation from the start when a new image is loaded.
Unfortunately the timing in browsers (setTiimeout and setInterval) is
not very precise, consistent or predictable.

Richard.
--

Example JavaScript DOM listings for: Opera 7.11,
Mozilla 1.2 and ICEbrowser 5.4
<URL: http://www.litotes.demon.co.uk/dom_root.html >
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.