window.onload = choosePic; var myPix = new Array("images/thumbs 1.jpg","images/thumbs 2.jpg","images/thumbs 3.jpg"); function choosePic() { var randomNum = Math.floor(Math.random() * myPix.length); document.getElementById("myPicture").src = myPix[randomNum];
Top