Hello,
I'm currently trying to set up a splash page that loads a random image from about 20 or so images. I've found multiple jQuery scripts that do this. The problem is most require a JavaScript file to be edited, aka an array.
I'm curious is anyone aware of a way that would allow a certain div to be targeted, so any image inside of that div would randomly load? This way images could be added by a friend in Wordpress and still load random for example without editing the JavaScript file?
<div id="randomImage">
<img src="image1.jpg">
<img src="image2.jpg">
<img src="image3.jpg">
<img src="image4.jpg">
<img src="image5.jpg">
</div>
Thank you so much for your time in advance!