Solved

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

Posted on 2001-06-05
4
267 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
[X]
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
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

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: mywebsite.com/wp…
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