Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • From: javascript@xxxxxxxxxx (Peter-Paul Koch)
  • Subject: [Javascript] Can I tell when an animated Gif is finished?
  • Date: Sun, 30 Dec 2001 12:50:55 +0000

>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