Link to home
Start Free TrialLog in
Avatar of meinemitternacht
meinemitternachtFlag for United States of America

asked on

How do I change a CSS bakground on refresh?

I have a drupal site located at http://www.claudebing.com and I want to be able for the background image on the front page to change when refreshed.  I have 10 or so images that are all the same size in my gallery, http://gallery.claudebing.com under the album Backgrounds (rotating).  Is there a way to call a php script in the CSS file that will randomly select an image from that album?  Or would it be simpler to call a file from a directory?

Thanks!
Avatar of mallcore
mallcore
Flag of Slovenia image

I think its easier to use php.
Check this out http://www.catswhocode.com/blog/3-ways-to-compress-css-files-using-php
ASKER CERTIFIED SOLUTION
Avatar of James Williams
James Williams
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of meinemitternacht

ASKER

Thank you very much Selvol, hit it right on the money.  Mallcore, that's way over my head :)
Thanks a ton!
Glad to assist..
Yes, over our heads.....??
Over my head... means too complicated for me :)