It is possible ? I need a script that will show up 3 random pictures on the sidebar in my blog. Thanks bebe!
yes, this is possible and I find Dan Benjamin's image randomizer.. as I'm not allowed yet to post links, please search for "image rotator" in alistapart dot com
Fairly straight forward to do.. a 1/2 dozen lines of php regardless of how you want to set it up... How do you want to list of possible images? all images in a directory? Database? random image from your past blog posting linked to the post? -JasonR
it's easy to do just use the rand function with a min and max number, you will need to name your images from 0.jpg to 10.jpg. <?php $min = 0; $max = 10; $myimagespath = './images'; echo $myimagespath.'/'.rand($min,$max).'.jpg'; ?> Code (markup):