Button Rollover


<html>
<head>
<script language="JavaScript">
if (document.images) {
   img1on = new Image();
   img1on.src = "download-on.jpg";

   img1off = new Image();
   img1off.src = "download.jpg";
   }

function imgOn(imgName) {
   if (document.images) {
       document[imgName].src = eval(imgName + "on.src");
   }
}

function imgOff(imgName) {
   if (document.images) {
       document[imgName].src = eval(imgName + "off.src");
   }
}
</script>
</head>

<body>
<p>
<a href="down.html" onMouseOver="imgOn('img1')" onMouseOut="imgOff('img1')">
<img border="0" src="download.jpg" name="img1"></a>
</p>
</body>
</html>