Practice 6C - COIN 70a

Image ARRAY

Assignment:

Create a web page with at least 5 images on it.
Develop a script that will display the images
on the page using an array.

Image Array CODE

imageArray = new Array("0", "1","2", "3", "4", "5", "6", "7", "8", "9");
function showImgArray() {

		for (i=0; i<imageArray.length; i++) {
			document.write("<img src='../week_4/" + imageArray[i] +
			".jpg' width='70' height='100' alt='' />");
	}
}

BACK