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

Posted on 2001-06-05
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
Question by:jastroem
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
LVL 75

Expert Comment

by:Michel Plungjan
ID: 6155506

Never preload animated gifs for netscape.
also do this:

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


Author Comment

ID: 6155520


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

/ Joergen
LVL 75

Accepted Solution

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


the first time and

the next


Author Comment

ID: 6198346
Great thanx a lot!

Featured Post

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

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

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The purpose of this video is to demonstrate how to properly insert a Vimeo Video into a WordPress site or Blog. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following:…
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…

729 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