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>