robe
Mar 15th, 2007, 12:34 PM
Hi!
In an old thread goldsky had written this script
it's a random link script, it open a new window with a random webpage.
How do I make it open in another frame in my frameset?
<script>
var randomurls=new Array()
randomurls[0]="http://xxx1.com"
randomurls[1]="http://xxx2.com"
randomurls[2]="http://xxx3.com"
randomurls[3]="http://xxx4.com"
randomurls[4]="http://xxx.com"
function randomurl(){
window.open(randomurls[Math.floor(Math.random()*randomurls.length)]);
}
</script>
<a href="javascript:randomurl()" >Link</a>
Thanks!
robe.
In an old thread goldsky had written this script
it's a random link script, it open a new window with a random webpage.
How do I make it open in another frame in my frameset?
<script>
var randomurls=new Array()
randomurls[0]="http://xxx1.com"
randomurls[1]="http://xxx2.com"
randomurls[2]="http://xxx3.com"
randomurls[3]="http://xxx4.com"
randomurls[4]="http://xxx.com"
function randomurl(){
window.open(randomurls[Math.floor(Math.random()*randomurls.length)]);
}
</script>
<a href="javascript:randomurl()" >Link</a>
Thanks!
robe.