• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 428
  • 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
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
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

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

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