Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2001-06-05
4
Medium Priority
?
272 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 200 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

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!
Geo-targeting is the practice of distributing content based on a person’s location, as best as you can determine it. Let’s look at some ways you could successfully use this tactic. The following tips and case studies could lead to meaningful results.
The purpose of this video is to demonstrate how to make a WordPress Site faster and smaller in size by cleaning up the database. This will be demonstrated using a Windows 8 PC. Plugin WP Optimize will be used. Go to your WordPress login page. T…
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…
Suggested Courses

783 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