We help IT Professionals succeed at work.

How do I change a CSS bakground on refresh?

meinemitternacht
on
442 Views
Last Modified: 2012-08-14
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!
Comment
Watch Question

Commented:
I think its easier to use php.
Check this out http://www.catswhocode.com/blog/3-ways-to-compress-css-files-using-php
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
Thank you very much Selvol, hit it right on the money.  Mallcore, that's way over my head :)

Author

Commented:
Thanks a ton!

Commented:
Glad to assist..
Yes, over our heads.....??

Author

Commented:
Over my head... means too complicated for me :)
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.