g00fy
02-13-2003, 10:22 AM
hi to all,
i have written a script based on a random image script to display a random html page inside an iframe marquee
it doesnt work though :(
can any1 offer suggestions ?
<script language="JavaScript">
var fileNum = 5 ;
var randomnumber = Math.random() ;
var rand1 = Math.round( (fileNum-1) * randomnumber) + 1 ;
files = new Array
files[1] = "http://www.ninemsn.com.au"
files[2] = "http://www.microsoft.com"
files[3] = "http://www.codingforums.com"
files[4] = "http://javascriptkit.com"
files[5] = "http://mandrakelinux.com"
var randFile = files[rand1]
</script>
and its called with
<iframe id="ticker_bottom" src="' + randFile + '" width="190" blah.. blah.. blah..>
thanx to all
kind regards,
g00fy
i have written a script based on a random image script to display a random html page inside an iframe marquee
it doesnt work though :(
can any1 offer suggestions ?
<script language="JavaScript">
var fileNum = 5 ;
var randomnumber = Math.random() ;
var rand1 = Math.round( (fileNum-1) * randomnumber) + 1 ;
files = new Array
files[1] = "http://www.ninemsn.com.au"
files[2] = "http://www.microsoft.com"
files[3] = "http://www.codingforums.com"
files[4] = "http://javascriptkit.com"
files[5] = "http://mandrakelinux.com"
var randFile = files[rand1]
</script>
and its called with
<iframe id="ticker_bottom" src="' + randFile + '" width="190" blah.. blah.. blah..>
thanx to all
kind regards,
g00fy