Codebank - JavaScripts - Image Rollover
This swaps an image when the mouse is placed over it. The following code needs to surround the image. For multiple rollovers on the same page, use the same format as below, ensuring that the image name is different for each image.
<A onMouseOver="rollOver('images/image2.gif', 'img1')"onMouseOut="rollOver('images/image1.gif', 'img1')" href="#"><img border="0" src="images/image1.gif" width="88" height="34" name="img1"></a>
Example -Place your mouse on the image below:
|