...

View Full Version : Google Adsense Rotate



JTyler's Articl
12-20-2011, 08:32 PM
I want to be able to rotate Adsense ads. 3/4 of the time, it will be someone else's. 1/4 of the time, it will be mine (my code is displayed already). However, the code I tried doesn't work. Can someone tell me how to fix this -


<script language="JavaScript">

images = new Array(4);

//the following string is really all on one line

images[0] = '<script type="text/javascript">google_ad_client = "ca-pub-4811954214954647";google_ad_slot = "2713945203";google_ad_width = 728;google_ad_height = 90;</script><script type="text/javascript"src="http:
//pagead2.googlesyndication.com/pagead/show_ads.js"
></script>';



images[1] = 'other code';



images[2] = 'other code';



images[3] = 'other code';



index = Math.floor(Math.random() * images.length);

document.write(images[index]);

//done

</script>

JTyler's Articl
12-21-2011, 07:54 PM
What do you mean?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum