Solved

NS have problems to show an animated gif as mouseover when image was preloaded

Posted on 2001-06-05
4
264 Views
Last Modified: 2013-12-16
I have an animated gif that should be used as mouse over image. This works fine in IE and NS, but if I use an image preload script (like Dreamweaver or GoLive) NS only show the animation the very first time... A second attempt to activate the mouse over results in NS showing only the last frame of that animation. However a reload of the page makes it possible to see the mouse over animation again - but only once.

If I preload that animation with a "fake preload" by inserting a <img src="myAnimation.gif" width="1" height="1" border="1"> on a previous page or on top of the page that uses the animation it works just fine.

Is there really a difference with NS if the an image was loaded or preloaded?

I'm listening :-)

Kind regards
Joergen
0
Comment
Question by:jastroem
  • 2
  • 2
4 Comments
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 6155506
Yes

Never preload animated gifs for netscape.
also do this:

document.images['myImage'].src = 'animation.gif?' +Math.random();
to trigger it again

Michel
0
 

Author Comment

by:jastroem
ID: 6155520
Michel

Thanks!

Can you tell me what the ?-mark does here?

/ Joergen
0
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 50 total points
ID: 6155533
It makes the url unique as in

animation.gif?123123123123

the first time and
animation.gif?980273498320

the next

Michel
0
 

Author Comment

by:jastroem
ID: 6198346
Great thanx a lot!
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
The purpose of this video is to demonstrate how to automatically show related posts at the bottom of a blog post in WordPress. This will be demonstrated using a Windows 8 PC. Plugin “Yet Another Related Posts Plugin” will be used. Go to your…
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now