Seen lots of debate over random image methods, here's one for the pot
If your on x-cart 3.3.8 or over use
Code:
[img]yoursitepath/image{[/img]
hows this work? Notice the
image{"
1"|mt_rand:
5}.gif
Generating a random number between 1 and 5 using smarty so in the html it's
image5.gif or image3.gif etc etc
Simply name your images image1.gif, image2.gif, image3.gif etc and set the mtrand:X to the amount you have in the folder.
If your running on an older x-cart then the smarty that is installed doesnt support the random function.