Menu
Hi,
I have a page that displays images that are taken out of an array in an external file. There are about five images in the array. I wrote the file a long time ago and in HTML and I am now trying to validate it in XHTML.
parts of my javascript code
//Display images
var images = image[index+1];
document.getElementById(“mypage”).img.src = images;
}
When I changed the form from
<image name=”img” src=””/> to
<input type=”image” name=”img” src=””/> the images no longer display and there is a javascript error.
Is there an easy way of fixing the problem?
Thanks.