wow. I used this idea
<?php echo rand(1, 7); ?>
to pull in a random image and yes, it works (in this case, it is a foreground image, not background via css)
I was hoping this would fix a problem I am having using rotate.php and pngbehavior.htc to present a random foreground image (png32 format). IE doesn't support png transparency, but pngbehavior.htc fixes that. Only, when the image is randomly selected using rotate.php, it fails to process the png to make the background transparent. Bummer.
So the above rand function works, but NOW, in IE, the whole image is transparent - even the non-transparent bits! I can see that the image is there by looking in the source code... and, of course, it is all working just fine in Firefox. Too WEIRD.
Any ideas, anyone? THis is obviously some issue with when things are processed - the order in which the image is selected and then transparency applied... but I cannot figure out a fix for the life of me. THere's no flexibility in this - I have to have png32 and it must be a random image.
This is all just in the beginning stages, but if you want to see the missing image, here's a url:
view in Firefox, then IE6
(nothing tested for mac or other browsers at this point, just rough layout, etc)