function random_imglink(){ var myimages=new Array() //specify random images below. You can have as many as you wish myimages[1]="http://img26.imageshack.us/img26/5254/27999294.png" myimages[2]="http://img215.imageshack.us/img215/2533/98880011.png" myimages[3]="http://img811.imageshack.us/img811/4413/16852860.png" myimages[4]="http://img580.imageshack.us/img580/1264/29867282.png"