[thelist] CSS Based on Calendar Dates

Trent Whaley u233 at shaw.ca
Fri Feb 13 20:10:46 CST 2004

On February 13, 2004 07:19 am, patrick wrote about "Re: [thelist] CSS Based on 
Calendar Dates":
> You'll want to look at a scripting/server-side language (PHP works
> nicely) that will check the date (or a part thereof) on each site visit.
> Then using if/then/else or a swich statement you can select the css file
> you want, then write that filename variable to the head of your document.

Assuming that he means to switch the styles based on Todays date, and not the 
article date, why not just have a bunch of stylesheets like spring.css, 
summer.css, ramadan.css, etc, and just copy the appropriate one to site.css 
(or whatever your pages reference).

You could even set up a bunch of cron jobs to change them based on time of day 

This also means you can stick with static pages and save some CPU time.

More information about the thelist mailing list