Javascripts > Javascript Images > Image Rollover Script
Script Title: Image Rollover Script
Description: This script makes an image change when the mouse is placed over the image.
Example: Available
Copy the following code into your <HEAD></HEAD> tags.<script language="Javascript"> <!-- //Slide Show script (this notice must stay intact) //For this and more scripts //visit java-scripts.net or http://wsabstract.com if (document.images) { button1 = new Image button2 = new Image button1.src = 'img1.gif' button2.src = 'img2.gif' } //--> </script>
Copy the following code between the <BODY></BODY> tags of your html page.<a href="http://java-scripts.net" onmouseover="document.rollover.src=button2.src" onmouseout="document.rollover.src=button1.src"><img src="img1.gif" border=0 name="rollover"></a>
Enter your name and email address to have this script sent right to your Inbox for later viewing. First Name Last Name Email