Quote:
Originally Posted by mrkris
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.
|
I was using it in a wordpress theme where it required it to be in css and a div