View Single Post
Old 04-18-2008, 09:16 AM  
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,378
Quote:
Originally Posted by mrkris View Post
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
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote