Need a good banner rotation script
#2
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! Smile
Reply


Messages In This Thread
Need a good banner rotation script - by zach - 10-23-2006, 12:27 PM
Need a good banner rotation script - by -thoma- - 10-23-2006, 07:15 PM
Need a good banner rotation script - by triumph - 10-23-2006, 10:18 PM
Need a good banner rotation script - by -thoma- - 10-24-2006, 09:24 PM

Possibly Related Threads...
Thread Author Replies Views Last Post
  Any good service for Google Apps deployment and support? MatterEnergy 3 2,501 10-26-2017, 01:04 PM
Last Post: Glaceptra
  MyspacePros Script? roo78 3 4,625 02-23-2008, 09:20 PM
Last Post: SageMother
  i need a auction script DNSBroker 3 4,572 10-15-2006, 02:37 AM
Last Post: triumph

Forum Jump:


Users browsing this thread: 1 Guest(s)