[Javascript] Can I tell when an animated Gif is finished?

Peter-Paul Koch gassinaumasis at hotmail.com
Sun Dec 30 06:50:55 CST 2001


>I need to display an animated gif (non-looping), wait for it to finish and 
>then go to another page.
>
>Is there something like an onCompletion event I could attach to the image? 
>(Cannot find anything in a list of events I have.)  Or perhaps a way of 
>forcing the gif to display immediately to completion, or to begin 
>displaying immediately? Or some other way of detecting when the animation 
>is done?

No, there is no event for that. I think you should use a slideshow-like 
script to show the frames of the animation instead of putting them all in 
one animated gif. Then you know for sure when it's finished.

ppk

_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com




More information about the Javascript mailing list