This may be a bit of a stretch, but I have a webpage with 3 small image placeholders at the bottom.
I'd like each placeholder to be able to display a random image with a link every time the page is loaded.
For example, at the moment I have:
<div class="col-xs-12 col-sm-12 col-md-4 homeFooter1">
<a href="Link-1"><img src="/image-1.jpg" alt="Image 1"></a>
</div>
<div class="col-xs-12 col-sm-12 col-md-4 homeFooter2">
<a href="Link-2"><img src="/image-2.jpg" alt="Image 2"></a>
</div>
<div class="col-xs-12 col-sm-12 col-md-4 homeFooter3">
<a href="Link-3"><img src="/image-3.jpg" alt="Image 3"></a>
</div>
I'd like to have "homeFooter1" choose between 3 different images - each with their own link to different pages, and the same for "homeFooter2" & "homeFooter3".
The images and links don't necessarily conform to a particular pattern. e.g. I might want to choose between: Pet-Food, Dog-Biscuits, Fish-Food in the first placeholder, with their links being petfood, dogsnacks and aquatics.
Hopefully this makes sense! I have seen examples of choosing an image from an array, but not an image with corresponding link.
The easiest way would probably be to have all of the divs on the page, and using an array to hide/unhide, but I'm aware of the user's bandwidth.
Thanks in advance!