Animated GIF - javaScript

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Stuart

    Animated GIF - javaScript

    Is it possable to stop or pause an animated gif from javaScript


  • Richard Cornford

    #2
    Re: Animated GIF - javaScript

    "Stuart" <gdss@ggg.hgd > wrote in message
    news:becvh7$soh $1@news8.svr.po l.co.uk...[color=blue]
    > Is it possable to stop or pause an animated gif from javaScript[/color]

    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 >


    Comment

    Working...