View Single Post
Old 04-18-2008, 09:05 AM  
mrkris
Confirmed User
 
Join Date: May 2005
Posts: 2,737
Why not just have an array of images and use:

<?php
srand((float) microtime() * 1000000);
$images = array('image1', 'image2', 'image3', ....);
echo $images[array_rand($images)];
?>

Or you could use javascript.
__________________

PHP-MySQL-Rails | ICQ: 342500546
mrkris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote