lowest=1 highest=5 ournumber=0 function getrandom(){return Math.random()* 5} 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/PulpCompanion/graphics/"; fn=new Array() fn[1]="battle.jpg" fn[2]="crime.jpg" fn[3]="space.jpg" fn[4]="sports.jpg" fn[5]="western.jpg" // WRITE THE BANNER document.write("\")