var newIm = new Array(); newIm[0] = new Image(); newIm[0].src = "111.jpg"; newIm[1] = new Image(); newIm[1].src = "112.jpg"; //... newIm[4] = new Image(); newIm[4].src = "115.jpg";