Button Rotation Script


Want a fancy button rotator like some sites have for affiliates or advertising? They come in handy and are really easy to use. Just copy and past the code below where you want your button to appear. Just change the image names and URLs to match the link you want. You can add as many links as you like. It's that easy!

<script language="JavaScript"> <!-- function random_imglink(){ var myimages=new Array() myimages[1]="http://www.imageURL.com" myimages[2]="http://www.imageURL.com" var imagelinks=new Array() imagelinks[1]="http://www.site.com" imagelinks[2]="http://www.site.com" var ry=Math.floor(Math.random()*myimages.length) if (ry==0) ry=1 document.write('<a href='+'"'+imagelinks[ry]+'"'+' target="new"><img src="'+myimages[ry]+'" border="0"></a>') } random_imglink() </script>
Back