Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

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

You are here: irt.org | FAQ | JavaScript | Image | Q1155 [ previous next ]

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?'

©2018 Martin Webb