website view libs/random-image.php @ rev 780

ex + id: Code clean-up and new layout (TODO: finish es)
author Christophe Lincoln <pankso@slitaz.org>
date Sat Mar 26 22:22:15 2011 +0100 (2011-03-26)
parents c2ce9d254863
children 3b9816842566
line source
1 <?php
3 $total = "6";
4 $folder = "images/slideshow";
5 $start = "1";
6 $random = mt_rand($start, $total);
7 $name = $random . ".png";
9 echo "<img src=\"$folder/$name\" alt=\"$name\" />";
11 ?>