Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Images position

Status
Not open for further replies.

AnaIsabelFlor77

Programmer
Mar 17, 2007
12
0
0
PT
Hello,

I have a bottom frame where I put an animated gif. The animation runs only once, so I would like to see two more animated images (to mail and phone) in my bottom frame.
But I just want to see them after the first animation finished.

Is there anyone who knows how to do this? Or is it impossible to do?

Thanks
 
You would not be able to detect the animation finishinig with JavaScript. You have at least two other options, however:

- Create one big animated GIF with all 3 images in, and use an imagemap to determine click location.

- Set a timer running in the onload event handler for each image, and when the timer fires, start the next image loading. You would set the timer duration to be the time taken for the image to animate fully.

Hope this helps,
Dan

Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top