website diff lib/random-image.php @ rev 1005
cn, da, de: full iconv'ed to utf-8; locale: add russian links, remove links to the same page; tiny edits
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Mar 29 00:37:38 2012 +0300 (2012-03-29) |
parents | 3b9816842566 |
children | e06721d4f040 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/lib/random-image.php Thu Mar 29 00:37:38 2012 +0300 1.3 @@ -0,0 +1,11 @@ 1.4 +<?php 1.5 + 1.6 +$total = "8"; 1.7 +$folder = "images/slideshow"; 1.8 +$start = "1"; 1.9 +$random = mt_rand($start, $total); 1.10 +$name = $random . ".png"; 1.11 + 1.12 +echo "<img src=\"$folder/$name\" alt=\"$name\" />"; 1.13 + 1.14 +?>