...

View Full Version : Random re-direct



Jan
02-19-2003, 02:27 PM
Hey y'all!

Is it possible to make a page that randomly from a bunch of pages, re-directs the visitor to another page? I hope you all understood my question.

Thankies!


~Jan

poccil
02-19-2003, 02:31 PM
function rnd(x){return Math.floor(Math.random()*x)}
var pages=new Array(
"page1.html",
"page2.html",
"page3.html"
)
function redir(){
location=pages[rnd(pages.length)]
}



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum