Very simple free ad rotation script

Hello.

I have just wasted 1 hour trying to make openads work on my new site and I am sick of it. I used phpadsnew and it was pretty ok, the new one is filled with a lot of useless (for me) features while it just cannot rotate few banners as I need it.

I would like to try something very simple. A free script that would rotate my banners and that’s it. I don’t need impressions, click and other statistics, I don’t need it to stop a campaing, just to evenly rotate some banners.

What could you recommend me? I am not willing to pay for this, so paid options are not OK since I don’t need too many features.

Thank you in advance for your help

Well, I use JavaScript for this on my site.

First, place this where you want the banners to be seen:


<script type="text/javascript" src="js/ad-rotation.js"></script>
<noscript>JavaScript must be enabled to view this element</noscript>

Next, build a page called ad-rotation.js in a folder called “js”, and in it place:


gfx0="http://www.yoursite.com/path/to/image.gif";
lnk0="http://www.advertiserswebsite.com/";
alt0="Advertisers Website";

gfx1="http://www.yoursite.com/path/to/image.gif";
lnk1="http://www.advertiserswebsite.com/";
alt1="Advertisers Website";

gfx2="http://www.yoursite.com/path/to/image.gif";
lnk2="http://www.advertiserswebsite.com/";
alt2="Advertisers Website";

gfx3="http://www.yoursite.com/path/to/image.gif";
lnk3="http://www.advertiserswebsite.com/";
alt3="Advertisers Website";

gfx4="http://www.yoursite.com/path/to/image.gif";
lnk4="http://www.advertiserswebsite.com/";
alt4="Advertisers Website";

gfx5="http://www.yoursite.com/path/to/image.gif";
lnk5="http://www.advertiserswebsite.com/";
alt5="Advertisers Website";

len=6; // Number of banners

today=new Date();
today=Math.round(today.getTime()/10);
rnd=today&#37;len;

// Edit the below for specific banner size
document.writeln('<a href="'+eval("lnk"+rnd)+'" title="'+eval("alt"+rnd)+'" rel="external"><img src="'+eval("gfx"+rnd)+'" alt="'+eval("alt"+rnd)+'" width="468" height="60" /><br /></a>');

Simplest option in my opinion. Let me know if you have any questions!

THANK you so much … this will surely work better than anything since I just want to rotate them, nothing more. :slight_smile: