Cycling Banner
window.onload = rotate;
var theAd = 0;
var adImages = new Array("images/banner1.gif","images/banner2.gif","images/banner3.gif");
function rotate() {
theAd++;
if (theAd == adImages.length) {
theAd = 0;
}
document.getElementById("adBanner").src = adImages[theAd];
setTimeout(rotate, 3 * 1000);
}
Cycling Banner