[Javascript] Re: Javascript digest, Vol 1 #509 - 4 msgs

Lewis Shadoff lshadoff at brazosport.cc.tx.us
Sat Jan 5 14:44:32 CST 2002


At 12:01 PM 1/5/02, you wrote:
>From: spacific at paradise.net.nz
>Subject: Re: [Javascript] Can I tell when an animated Gif is finished?
>Reply-To: javascript at LaTech.edu
>
> >No, there is no event for that.

The onLoad event of an image will be triggered when an animated gif has 
completely loaded.  just add a JavaScript onLoad event handler to do what 
you want.

[img name="myImg" src="animated.gif" onLoad="imgHandler()"]

[script language="JavaScript"]

imgHandler() {
// do something here
}

[/script]

Lew


Lewis A. Shadoff, PhD
Brazosport College
Lake Jackson, TX





More information about the Javascript mailing list