I have an image rollover using Javascript and it was working perfectly until I realized that my images were not over lapping in the correct order. I went back and changed the order of the images and now I have an empty image box appearing at the top of the page. I can't seem to figure out what I did wrong. Is this a common issue. Here is my code-
<script language="JavaScript">
var ImageArr1 = new Array("cf1.png","cf2.png","cf3.png","cf4.png","cf5.png");
var ImageHolder1 = document.getElementById('Rotating1');
function RotateImages(whichHolder,Start)
{
var a = eval("ImageArr"+whichHolder);
var b = eval("ImageHolder"+whichHolder);
if(Start>=a.length)
Start=0;
b.src = a[Start];
window.setTimeout("RotateImages("+whichHolder+","+(Start+1)+")",8000);
}
Bookmarks