var n=13; var image, b; for( array = [], i=0; i<n; i++){ image = new Image; var s = i+2; image.src = 'image/' + s + '.jpg' ; array.push( image ) ; $('body').append(array[i]); };