View Full Version : Google Adsense Rotate

JTyler's Articl
12-20-2011, 09: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:

images[1] = 'other code';

images[2] = 'other code';

images[3] = 'other code';

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




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