<!-- JavaScript Banner Rotator - Rotate banners in order after a set period of time.
<!-- Put this text in the BODY section of the HTML Note: Add the [onLoad="baninit(); rotatebanners()"] to the BODY tag-->

var MaxAds = 5; // Total Number Of Ads
var AdNum = Math.floor(Math.random()*MaxAds);;

function baninit(){
	 document.BannerAd.src=images[AdNum];
	 banlink.href=links[AdNum];	
}
function initArray() {
this.length = initArray.arguments.length;
  for (var i = 0; i < this.length; i++) {
  this[i] = initArray.arguments[i];
  }
}
<!-- Here goes the url to goto when banner is clicked -->
links = new initArray(
"http://bizoppman.imarichkid.hop.clickbank.net/?tid=banners",
"http://bizoppman.surveysc.hop.clickbank.net/?tid=banners",
"http://www.CBmall.com/15ways.asp?storefront=bizoppman",
"http://bizoppman.surveys2.hop.clickbank.net/?tid=banners",
"http://bizoppman.1free.hop.clickbank.net/?tid=banners",
"http://www.nettvpc.com"
)
<!-- Here goes the url to where the banners are located -->
images = new initArray(
"http://www.ultimatewealthpackage.com/banner2a.gif",
"http://www.surveyscout.com/images/banners/yp_468x60.gif",
"http://www.cbmall.com/advertising/15streams.gif",
"http://www.paidsurveysonline.com/images/banners/banner400.gif",
"http://www.forexenterprise.com/banner468-60.gif",
"http://www.worldtvpc.com/cb_pics/rebranded_banner.gif"
)
<!-- Here goes the the alt text for above banners -->
alttext = new initArray(
"ultimate wealth package",
"TV Central",
"The Best Place To Download Movies and Games",
"SurveyScout",
"CBMall",
"no adware",
"paid surveys online",
"multi stream income",
"rebranded tv on pc software",
"mp3 universal",
"top gold reviews",
"micro antivirus",
"shared movies",
"full music downloads"
)

var bannerlink = links[0]
var banlink = images[0]
function rotatebanners() {
if (AdNum == MaxAds) { 
  AdNum = 0 
} 
document.BannerAd.src=images[AdNum] 
document.BannerAd.alt=alttext[AdNum]

setTimeout("rotatebanners()",10000)
bannerlink = links[AdNum]
banlink.href=links[AdNum]
AdNum++
} 

function changelink() {
 location = bannerlink
 }
function openWin() {
 windowHandle = window.open(bannerlink,'windowName');
}

<!--  The following bit of code goes where you want the banners to appear
<!--  <a href="#" name = "banlink" onclick="javascript:openWin()" ><img src = "http://www.sksservices.co.uk/pap/banners/awesome_468x60.jpg  alt = "" name = "BannerAd" border = "0" ></a>
 -->
