How to make a random image appear on a page using Javascript
I've got an array of eleven images that I wish to show randomly on the index page in a site. The image should change with every visit to the page. I've tried various javascript "solutions" I've found on line, but none seem to work. I've got the array in the head, with the complete path to the image on each element.
How do I randomize the display, and how do I cause the image to appear in the div I've got set for the image?
Gene
