You will likely have to put the php script that sends the images to the browser in a directory that is not being covered by mod_rewrite I guess. The specific location depends a lot on your actual mod_rewrite config.
I think they have added a randomizer function in v3.8. With that you could set different css classes on the body tag, and use css to have different styles / backgrounds based on that class.
body.style1 div#mydiv {bacground: #fff url(my_img.gif) left top no-repeat scroll;}
body.style2 div#mydiv {bacground: #fff url(not_my_img.gif) left top no-repeat scroll;}
In earlier versions you could use time stamps as the randomizer, for instance seconds. You could have 60 different styles That would seem quite random to the surfer as well..
We did this by using the shuffle contribution and calling images from a special folder in the Media Section.
We set the shuffle operator on a fetch that called images from that folder (by parent node) using a limit of 1. Then the fetch is embedded in an inline style - background-image for that div.
I don't have the code handy, but can post it if you need it.
The post by Marc Boon in this thread
http://ez.no/community/forum/setup_design/how_to_fetch_random_content_3_8/re_how_to_fetch_random_content_3_8__3
gives a nice solution on how to fetch a single random object (and some ideas on how to fetch more than one) Limit the fetch to your pictures, grab the path to the picture and add it to your style information.
Greetings from Luxembourg
Claudia
You must be logged in to post messages in this topic!