Test

var imageRotatorImg = new Array(); // Image Names.... imageRotatorImg[0]="https://sites.google.com/a/YOUR_SITE_NAME/YOUR_PATH/0.jpg"; imageRotatorImg[1]="https://sites.google.com/a/YOUR_SITE_NAME/YOUR_PATH/1.jpg"; imageRotatorImg[2]="https://sites.google.com/a/YOUR_SITE_NAME/YOUR_PATH/2.jpg"; imageRotatorImg[3]="https://sites.google.com/a/YOUR_SITE_NAME/YOUR_PATH/3.jpg"; imageRotatorImg[4]="https://sites.google.com/a/YOUR_SITE_NAME/YOUR_PATH/4.jpg"; var newimageRotator = 0; var imageNumz = imageRotatorImg.length; function cycleImages() { newimageRotator++; if (newimageRotator == imageNumz) { newimageRotator = 0; } // set rotate time - "4*1000" = 4 seconds setTimeout("cycleImages()", 4*1000); document.imageRotator.src=imageRotatorImg[newimageRotator]; } window.onload=cycleImages; ]]>
Comments