Solved

How do I change a CSS bakground on refresh?

Posted on 2009-07-03
6
420 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!
0
Comment
Question by:meinemitternacht
  • 3
  • 2
6 Comments
 
LVL 5

Expert Comment

by:mallcore
Comment Utility
I think its easier to use php.
Check this out http://www.catswhocode.com/blog/3-ways-to-compress-css-files-using-php
0
 
LVL 17

Accepted Solution

by:
selvol earned 500 total points
Comment Utility
0
 

Author Comment

by:meinemitternacht
Comment Utility
Thank you very much Selvol, hit it right on the money.  Mallcore, that's way over my head :)
0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 

Author Closing Comment

by:meinemitternacht
Comment Utility
Thanks a ton!
0
 
LVL 17

Expert Comment

by:selvol
Comment Utility
Glad to assist..
Yes, over our heads.....??
0
 

Author Comment

by:meinemitternacht
Comment Utility
Over my head... means too complicated for me :)
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Read about why website design really matters in today's demanding market.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now