Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q1155 How can I swap an image onMouse Over to show an animated gif that loops once?

irt.org | Knowledge Base | JavaScript | Image | Q1155 [ previous next ]

Q1155 How can I swap an image onMouse Over to show an animated gif that loops once?

In older browser swapping images where one of the images was animated always gave problems. This may not now be the case.

<a href="#" onMouseOver="if (document.images) document.myImage.src = 'animated.gif?'+Math.random();setTimeout=('document.myImage.src = \'static.gif\'',2000)"><img src="static.gif" name="myImage"></a>

Feedback on 'Q1155 How can I swap an image onMouse Over to show an animated gif that loops once?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 6th July 2009. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2009 irt.org, All Rights Reserved.