lowest=1 highest=4 ournumber=0 function getrandom(){return Math.random()* 4} function nowround() {return Math.round(getrandom())} ournumber=nowround() // CHECK VALUE OF NUMBER if ( ournumber < lowest ) {ournumber=lowest} if ( ournumber > highest ) {ournumber=highest} /* FILE ARRAY You need to add your own banner filenames here and change the bannerdir to the directory or http where your banners are located */ bannerdir="http://ThePulp.Net/graphics/"; fn=new Array() fn[1]="covers1.jpg" fn[2]="covers2.jpg" fn[3]="covers3.jpg" fn[4]="covers4.jpg" // WRITE THE BANNER document.write("\")