imageObj = new Image(); images = new Array(); images[0]="image1.jpg" images[1]="image2.jpg" images[2]="image3.jpg" images[3]="image4.jpg" for(i=0; i<=3; i++) { imageObj.src=images[i]; }