var myImage = document.getElementById("pauls");
var imageArray = ["stpauls.jpg", "stpauls1.jpg", "stpauls2.jpg", "st pauls3.jpg"];
var imageIndex = 0;
$(document).ready (function.changeImage() {
myImage.setAttribute("src", imageArray[imageIndex]);
imageIndex ++;
if (imageIndex >= imageArray.length) {
imageIndex = 0;
}
});
setInterval(changeImage, 5000);
so im trying to rotate a series of 4 photos using the code above, but when i load my page, nothing happens the original src photo stays
in my HTML i have id="pauls" src="stpauls" and linked my file to my index.html file
regards