ikimashokie's Reading Room
Random Banner!!!
by:
this gives you a nice random image at the top of your page. scroll down to find where to put in your pictures.
--------------------------------copy after here----------------------------
<------------banner html----------->
<center>
<script language="Javascript">
<!--
var currentdate = 0
var core = 0
function StringArray (n) {
this.length = n;
for (var i =1; i <= n; i++) {
this[i] = ' '
}
}
image = new StringArray(7) // this number is one less than the number of pictures you want included.
//you cant include that number in the [] braces below. it only goes from 0-(#-1)
image[0] = 'PICTURE PATH/FILE ZERO'
image[1] = 'PICTURE PATH/FILE ONE'
image[2] = 'PICTURE PATH/FILE TWO'
image[3] = 'PICTURE PATH/FILE THREE'
image[4] = 'PICTURE PATH/FILE FOUR'
image[5] = 'PICTURE PATH/FILE FIVE'
image[6] = 'PICTURE PATH/FILE SIX'
//obviously, if youre doing this, you must be familiar with coding/html, and for more pics, just
//copy paste and fix it up.
var ran = 60/image.length // change 60 if you want the time interval to change.
function ranimage() {
currentdate = new Date()
core = currentdate.getSeconds()
core = Math.floor(core/ran)
return(image[core])
}
document.write("<img src='" +ranimage()+ "' border=0>")
//-->
</script>
</center>