// JavaScript Document document.write('
'); document.write('
'); document.write('
'); document.write('
'); document.write('
'); document.write('
'); document.write('
'); document.write('
'); // time between switching the ad, in milliseconds var refreshTime = 4000; // 1000 ms = 1 seconds // number of ads to rotate var numAds = 3; // Make sure you change this to match the number of ads you have defined below. function makeAd() { this.width = ''; this.height = ''; this.src = ''; this.href = ''; this.mouseover = ''; // this.sponsor = ''; } var ads = new Array(); for(var i = 1; i <= numAds; i++) { ads[i] = new makeAd(); } //Copy and paste the lines between the banner definition for //each banner you want to rotate and be sure to change numAds to //the number of banners (look about 15 lines up for numAds) i = 1; ads[i].width = "150"; //width of image ads[i].height = "50"; //height of image ads[i].src = "http://www.classadrivers.com/acklie/shaffer.gif"; //image url ads[i].href = "http://www.shaffertrucking.com"; //link url ads[i].mouseover = "Shaffer Trucking"; //text to display when mouse moves over banner //ads[i].sponsor = "Shaffer Trucking"; //text to display for text link under banner i++; ads[i].width = "150"; ads[i].height = "50"; ads[i].src = "http://www.classadrivers.com/acklie/crete.gif"; ads[i].href = "http://www.cretecarrier.com"; ads[i].mouseover = "Crete Carrier Corporation"; //ads[i].sponsor = "Crete Carrier Corporation"; i++; ads[i].width = "150"; ads[i].height = "50"; ads[i].src = "http://www.classadrivers.com/acklie/hunt.gif"; ads[i].href = "http://www.hunttransportation.com"; ads[i].mouseover = "Hunt Transportation"; //ads[i].sponsor = "Hunt Transportation"; i++; function nextImg(){ i++; if(i>numAds) i=1; window.document.getElementById("bannerImg").width=ads[i].width; window.document.getElementById("bannerImg").height=ads[i].height; window.document.getElementById("bannerImg").src=ads[i].src; window.document.getElementById("bannerLnk").href=ads[i].href; // window.document.getElementById("bannerSpc").innerHTML=ads[i].sponsor; setTimeout("nextImg()", refreshTime); } function statusBar(){ if (i>numAds) window.status = ads[1].mouseover; else window.status = ads[i].mouseover; } setTimeout('nextImg()', 0); document.write('
'); document.write('

'); document.write('
'); document.write('
'); document.write('
'); document.write('
'); document.write('
'); document.write('
'); document.write('
');