Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 429
  • Last Modified:

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!
0
meinemitternacht
Asked:
meinemitternacht
  • 3
  • 2
1 Solution
 
mallcoreCommented:
I think its easier to use php.
Check this out http://www.catswhocode.com/blog/3-ways-to-compress-css-files-using-php
0
 
selvolCommented:
0
 
meinemitternachtAuthor Commented:
Thank you very much Selvol, hit it right on the money.  Mallcore, that's way over my head :)
0
Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.

 
meinemitternachtAuthor Commented:
Thanks a ton!
0
 
selvolCommented:
Glad to assist..
Yes, over our heads.....??
0
 
meinemitternachtAuthor Commented:
Over my head... means too complicated for me :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now