Posts: 943
Threads: 138
Joined: Jun 2006
Does anyone know of a good banner rotation script? There are literally hundreds of them out there, and I am not sure which is the best.
Any insight would be appreciated
Thanks
Zach
Posts: 138
Threads: 11
Joined: Aug 2006
If you want accurate information such as impressions per month and how many clicks each ad recieves, I would try phpadnews. If you want just a quick code then this will do the trick.
Code:
<script type="text/javascript">
/*
Rotating Ads per Page Load
by iFusion - [url=http://forum.ifcode.com](OFFLINE) Board Offline[/url]
*/
//Define the ads' URL and Image below
var ad = []
ad[0]=["URL HERE" , "IMAGE URL HERE"]
ad[1]=["URL HERE" , "IMAGE URL HERE"]
ad[2]=["URL HERE" , "IMAGE URL HERE"]
//Do not edit anything below this line
x = Math.floor(Math.random()*ad.length)
document.write("<center>")
document.write("<a href='" + ad[x][0] + "'>")
document.write("<img src='" + ad[x][1] + "' />")
document.write("</a>")
document.write("</center>")
</script>
Hope that helped!
Posts: 374
Threads: 35
Joined: Jul 2006
I have only played around with it a little bit, from what I have seen though, PHPADNEWS is by far and away the most popular and most highly recommended. Not to mention the price is right.
Posts: 138
Threads: 11
Joined: Aug 2006
triumph Wrote:I have only played around with it a little bit, from what I have seen though, PHPADNEWS is by far and away the most popular and most highly recommended. Not to mention the price is right.
You have to pay for phpadnews? Somehow I don't remember having to do that..