4WebHelp
 FAQ  •  Search  •  User Groups  •  Forum Admins  •  Smilies List  •  Statistics  •  Rules   •  Login   •  Register
Toggle Navigation Menu

 Alternating CSS files
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic
Author Message
genkidave
Junior WebHelper
Junior WebHelper


Joined: 05 Nov 2003
Posts: 7

PostPosted: Mon Dec 01, 2003 8:46 am (13 years, 10 months ago) Reply with QuoteBack to Top

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... Rolling Eyes

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!!!!! Twisted Evil
OfflineView User's ProfileFind all posts by genkidaveSend Personal Message
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Mon Dec 01, 2003 5:31 pm (13 years, 10 months ago) Reply with QuoteBack to Top

Java is certainly not the appropriate language for your problem. In fact I'm not even sure it would work...

Why not learn (just a little) PHP? Alternately you could use Perl or JSP, or any server-side programming language Smile.

[Edit: Javascript would also be an option because it can output HTML, which in this case would be a <link> tag]

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
Display posts from previous:      
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic


 Jump to:   




You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot edit your posts in this forum.
You cannot delete your posts in this forum.
You cannot vote in polls in this forum.


Page generation time: 0.05833 seconds :: 18 queries executed :: All Times are GMT
Powered by phpBB 2.0 © 2001, 2002 phpBB Group :: Based on an FI Theme