PDA

View Full Version : Looking for a good link rotator script



Minte
06-11-2007, 08:05 PM
Something that will work from thumbs and text links.
If you have something you have used I'd appreciate a recommendation.

Mr. Goat
06-11-2007, 09:52 PM
phpads new should be able to do images and text.

Minte
06-11-2007, 10:07 PM
I'll take a look.Thanks for the lead.

Fluid
06-12-2007, 12:40 PM
You might find that clunky for just thumbs and text. And on a good level of traffic it'll slow your server down quite a bit

djroof
06-12-2007, 12:54 PM
try this:


<script language="JavaScript">
banner = new Array()
banner[0]="http://yourdomain.com/banner1.jpg"
banner[1]="http://yourdomain.com/banner2.jpg"
banner[2]="http://yourdomain.com/banner3.jpg"
banner[3]="http://yourdomain.com/banner4.jpg"
banner[4]="http://yourdomain.com/banner5.jpg"
banner[5]="http://yourdomain.com/banner6.jpg"

url = new Array()
url[0]="http://link1.com"
url[1]="http://link2.com"
url[2]="http://link3.com"
url[3]="http://link4.com"
url[4]="http://link5.com"
url[5]="http://link6.com"

var Number = Math.round(5 * Math.random());

document.write('<center><A HREF="' + url[Number] +'"><img src="'+ banner[Number] +'" border=0></A></center> ')

</script>