Solved

How do I change a CSS bakground on refresh?

Posted on 2009-07-03
6
421 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
ID: 24771855
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
ID: 24771872
0
 

Author Comment

by:meinemitternacht
ID: 24773491
Thank you very much Selvol, hit it right on the money.  Mallcore, that's way over my head :)
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Closing Comment

by:meinemitternacht
ID: 31599535
Thanks a ton!
0
 
LVL 17

Expert Comment

by:selvol
ID: 24776583
Glad to assist..
Yes, over our heads.....??
0
 

Author Comment

by:meinemitternacht
ID: 24776588
Over my head... means too complicated for me :)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…

943 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

4 Experts available now in Live!

Get 1:1 Help Now