PDA

View Full Version : Exit Consoles?


Kree
04-30-2001, 12:26 PM
Hello,

Could someone give me the code for a Rotating Exit Console? Meaning - everyother exit gives the surfer a different exit console?
Or
Could someone direct me to a resource for the code.


Thanks.

QuietMike
04-30-2001, 01:10 PM
<script language=javascript>
exit=true;
function MOUSE() {
if (exit) {
testwhich=parseInt((Math.random()*3)+1);
if (testwhich == 1) {
open("http://www.exitsite1.com/");
}
if (testwhich == 2) {
open("http://www.exitsite2.com/");
}
if (testwhich == 3) {
open("http://www.exitsite3.com/");
}
}
}
</script>

Also don't forget to put an onunload tag in the body tag to activate it like this
<body onunload="MOUSE()">