I want to have some images next to an adsense ad and i want different ads each time the page loads. Could someone be so kind to tell me how to implement this? Or point me to a thread where this is explained. I knew of a thread posted by someone from India i believe that posted a code for this but i can't seem to find it.
you forgot to mention what code language you prefer there are so called "random image" scripts out there on the free market - "matt's script archive" http://www.scriptarchive.com/ "Random Image Displayer" and other sites ... that could be used with perl or other script languages to insert a random image at a predetermined location next to your adsense, using a table for example . i am sure similar code for "random image" can be found for php or other scripting languages as well depending on your exact preferences or needs about ads rotating - i wrote a small howto a while ago http://www.kriyayoga.com/how_to/how_to_adsense_ssi.html
Thanks man, i found this one quite interesting and easy for a struggling website developer as myself http://www.alistapart.com/articles/randomizer/ Just drop a zillion images in the needed file and it's done...
Here is my suggestion for images rotation, used for Leaderboard (728 x 90) : ---------------- Images rotation form for Adsense, by Petalia.org: <table border="0" width="73%" id="table1" cellspacing="0" cellpadding="0"> <tr> <td width="22%"> <p align="center"> <script language="JavaScript"> <!-- /* Random Image Link Script By Website Abstraction (http://www.wsabstract.com) edited by Petalia @ Petalia Homepage (http://www.petalia.org) */ function random_imglink(){ var myimages=new Array() //specify random images below. You can have as many as you wish myimages[1]="image1.jpg" myimages[2]="image2.jpg" myimages[3]="image3.jpg" var ry=Math.floor(Math.random()*myimages.length) if (ry==0) ry=1 document.write('<img src="'+myimages[ry]+'" border=0>') } random_imglink() //--> </script> </td> <td width="24%"> <p align="center"> <script language="JavaScript"> <!-- /* Random Image Link Script By Website Abstraction (http://www.wsabstract.com) edited by Petalia @ Petalia Homepage (http://www.petalia.org) */ function random_imglink(){ var myimages=new Array() //specify random images below. You can have as many as you wish myimages[1]="image4.jpg" myimages[2]="image5.jpg" myimages[3]="image6.jpg" var ry=Math.floor(Math.random()*myimages.length) if (ry==0) ry=1 document.write('<img src="'+myimages[ry]+'" border=0>') } random_imglink() //--> </script> </td> <td width="25%"> <p align="center"> <script language="JavaScript"> <!-- /* Random Image Link Script By Website Abstraction (http://www.wsabstract.com) edited by Petalia @ Petalia Homepage (http://www.petalia.org) */ function random_imglink(){ var myimages=new Array() //specify random images below. You can have as many as you wish myimages[1]="image7.jpg" myimages[2]="image8.jpg" myimages[3]="image9.jpg" var ry=Math.floor(Math.random()*myimages.length) if (ry==0) ry=1 document.write('<img src="'+myimages[ry]+'" border=0>') } random_imglink() //--> </script> </td> <td width="28%"> <script language="JavaScript"> <!-- /* Random Image Link Script By Website Abstraction (http://www.wsabstract.com) edited by Petalia @ Petalia Homepage (http://www.petalia.org) */ function random_imglink(){ var myimages=new Array() //specify random images below. You can have as many as you wish myimages[1]="image10.jpg" myimages[2]="image11.jpg" myimages[3]="image12.jpg" var ry=Math.floor(Math.random()*myimages.length) if (ry==0) ry=1 document.write('<img src="'+myimages[ry]+'" border=0>') } random_imglink() //--> </script> </td> </tr> <tr> <td colspan="4"> <p> <script type="text/javascript"><!-- google_ad_client = "your_ad_id"; google_ad_width = 728; google_ad_height = 90; google_ad_format = "728x90_as"; google_ad_type = "text_image"; google_ad_channel =""; google_color_border = "000000"; google_color_bg = "000000"; google_color_link = "FFFFFF"; google_color_url = "008000"; google_color_text = "00FFFF"; //--></script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script></td> </tr> </table> ---------- Hope it helps, please tell me if it works for you