View Single Post
Old 11-23-2009, 08:20 PM  
Thurbs
The Thrilla in Manila
 
Join Date: Sep 2004
Location: Thurbs' Lagoon, Christmas Island
Posts: 4,785
<SCRIPT LANGUAGE="JavaScript">

var howMany = 4;
var page = new Array(howMany+1);

page[0]="URL";
page[1]="URL";
page[2]="URL";
page[3]="URL";
page[4]="URL";

function rndnumber(){
var randscript = -1;
while (randscript < 0 || randscript > howMany || isNaN(randscript)){
randscript = parseInt(Math.random()*(howMany+1));
}
return randscript;
}
quo = rndnumber();
quox = page[quo];
window.location=(quox);

</SCRIPT>

make a .html or .php that is this and put the urls to load in that.

if you want the location to be seemless, use a superframe ( 0,0,* ) type
Thurbs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote