Closed Thread Icon

Topic: Alternating CSS files (Page 1 of 1) Pages that link to <a href="" title="Pages that link to Topic: Alternating CSS files (Page 1 of 1)" rel="nofollow" >Topic: Alternating CSS files <span class="small">(Page 1 of 1)</span>\

Nervous Wreck (II) Inmate

From: Japan
Insane since: Nov 2003

posted posted 12-01-2003 14:07

Hey guys! Merry X-Mas!

OK, I've had advice on this question, but I still can't find any specific code for it.

Here's the problem:

I have 4 different css files that are related to the 4 different seasons (spring.css, summer.css, fall.css and winter.css)

OK, what I want is to find some code that I can insert into my web page that will automatically activate a particular css file according to a starting date and an ending date.
Eg: The winter.css file will be activated on the first day of winter up until the last day of winter, which is when the spring.css file will be activated.

I'm currently reading a book about JAVA 2, but I'm one of the most illogical people known to man, therefore I'm having a difficult time grasping the concept. VB is no problem, so long as I'm creating an application (and I'm reading the book) , but at least I'm trying...

Anyway, is there a specific java script out there that will do this, and if not, are there any eager beavers out there who might find this concept a nice little challenge and be nice enough to share it with me, or ALL OF US???

P L E A S E!!!!!

Genki Dave

Paranoid (IV) Mad Scientist

From: KC, KS
Insane since: Nov 2002

posted posted 12-01-2003 15:03

If this is becoming such a problem for you why not just make a CSS file named "seasonal" or something and just rename the appropriate file on the first day of each season? It's not quite as fancy as the solution you're looking for but it wouldn't cause you nearly as many headaches. After all, you'd only be changing it 4 times a year.


Maniac (V) Inmate

From: Seoul, Korea
Insane since: Apr 2002

posted posted 12-01-2003 15:04

Um, didn't you post an almost identical thread not too long ago?

I just did a quick search and found this. Complete with answers to your question and all. Isn't that nifty?

[Emp edit: And as Suho rightly points out this is already being discussed in the other thread so there is no need for a second one]


« BackwardsOnwards »

Show Forum Drop Down Menu