lowest=1 highest=3 ournumber=0 function getrandom(){return Math.random()* 3} 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/0206/"; fn=new Array() fn[1]="payne1.jpg" fn[2]="payne2.jpg" fn[3]="payne3.jpg" // WRITE THE BANNER document.write("\")