I have a div with an UL list in there, which currently has 20 images in, all named 1.jpg - 20.jpg.
I wanted to change this and have the images displayed in a random order on each page load / refresh.. I was wondering if you are able to help point me in the right direction?
All the images are on the webserver in "images/"
At the moment I need the images to fall in line with the below code:
<li><a></a><a><img alt="" src="images/Random1.jpg" /></a></li>
<li><a></a><a><img alt="" src="images/Random2.jpg" /></a></li>
<li><a></a><a><img alt="" src="images/Random3.jpg" /></a></li>
<li><a></a><a><img alt="" src="images/Random4.jpg" /></a></li>
At the moment I've tried several different bits of code I've seen on stack overflow, but I can't seem to get it working.