Random image

Thought some people might find this useful…


var filesys = new Array("images/image2.jpg", "images/image3.jpg", "images/image4.jpg");
 
function randImg(){
 randomnum = Math.floor(Math.random() * filesys.length);
 myImgDiv.innerHTML = "<img src=" +filesys[randomnum] + ">";
}