/* Script by FPMC at http://jsarchive.8m.com Submitted to JavaScript Kit (http://javascriptkit.com) For this and 400+ free scripts, visit http://javascriptkit.com */ //set image paths src = ["images/banner/img1.jpg", "images/banner/img2.jpg","images/banner/img3.jpg", "images/banner/img4.jpg", "images/banner/img5.jpg", "images/banner/img6.jpg", "images/banner/img7.jpg"] //set duration for each image duration = 4; //Please do not edit below ads=[]; ct=0; doLink(); function switchAd() { var n=(ct+1)%src.length; if (ads[n] && (ads[n].complete || ads[n].complete==null)) { document["Ad_Image"].src = ads[ct=n].src; } ads[n] = new Image; ads[n].src = src[n]; setTimeout("switchAd()",duration*1000); } function doLink(){ if (document.images) switchAd(); }