ROLL OVER IMAGES

SCRIPT SOURCE
This following lines of Java Script go into your <head></head>
tag of HTML page.
<script language="JavaScript">
var NN3 = false;
image1= new Image();
image1.src = "IMAGE FILE OFF";
image1on = new Image();
image1on.src = "IMAGE FILE ON";
image2= new Image();
image2.src = "IMAGE FILE OFF";
image2on = new Image();
image2on.src = "IMAGE FILE ON";
function on3(name) {
document[name].src = eval(name + "on.src");
}
function off3(name) {
document[name].src = eval(name + ".src");
}
NN3 = true;
function on(name) {
if (NN3) on3(name);
}
function off(name) {
if (NN3) off3(name);
}
</script>
Here is the HTML code which goes into you Body of HTML document.
<a href="YOUR LINK" onmouseover="on('image1');" onmouseout="off('image1')"><img src="IMAGE FILE OFF" border="0" name="image1"></a><br>
<a href="YOUR LINK" onmouseover="on('image2');" onmouseout="off('image2')"><img src="IMAGE FILE OFF" border="0" name="image2"></a>
The first thing that needs to be done is the change the IMAGE FILE ON (in the top script) and the IMAGE OFF (in the top and bottom script). Now if you want add more images, you'll have to adjust the top script by adding this additional line. (this is an example of how to add a third image image)This goes after the lines that look identical.
image3= new Image();
image3.src = "IMAGE FILE OFF";
image3on = new Image();
image3on.src = "IMAGE FILE ON";
Notice how "image2" went to "image3". To add a fourth image you would replace all the "image3"'s with "image4" and so on.
Now put this link in the body of your document to make the third image visible.
<a href="YOUR LINK" onmouseover="on('image3');" onmouseout="off('image3')"><img src="IMAGE FILE OFF" border="0" name="image3"></a>
Notice how the image number went up to "image3". Repet all the steps that I just showed you to put in a fourth or fifth image and change "image3" to "image4" or "image5"!!!! It's that easy!