View Single Post
Old 07-20-2005, 08:18 PM  
raster
Confirmed User
 
Join Date: Aug 2003
Posts: 784
Thanks Lycanthrope, I'll check out ATO script.

That random redirect script is nice, but I'm looking to have it so that

The first hit by an IP always goes to sponsor 1
The second hit by an IP always goes to sponsor 2All consecutive hits by this IP goes to a final sponsor

Quote:
Originally Posted by Lycanthrope
ATO Script's Gallery Admin will do this. You can also use the scripts for TGPs, other links, any type of traffic.

Alternately, just setup your 404 page to redirect to random links like so, put this in the head:

<SCRIPT>
<!--
//Specify as many random links as you want below and number accordingly
var randomlinks=new Array()

randomlinks[0]="http://www.url.one"
randomlinks[1]="http://www.url.two"

function randomlink(){
window.location=randomlinks[Math.floor(Math.random()*randomlinks.length)]
}
//-->
</SCRIPT>

and throw this in your body tag:

<BODY ONLOAD="randomlink()">

This will redirect them to a random specified url every page load
raster is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote