2 replies [Last post]
disconnected
Offline
newbie
Last seen: 17 years 51 weeks ago
Joined: 2005-02-03
Posts: 1
Points: 0

I am trying to design a site for our dog rescue, and am wondering if it's possible to make a stylesheet that can change via the date.
This would definitely save us some valuable time in keeping our site looking more up to date if I could designate stylesheets for different dates, for instance on holidays ect ect.

Tags:
Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 8 years 3 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

dynamic stylesheet change by date

That will be a scripting job, php would be my choice, should be relatively straightforward with an 'if' statement once you've worked out the date function (hardest part) but no doubt also possible with Javascript and for the second time today suggest that Tony may be able to provide a solution Smile

Hugo.

P.S I'll move this to 'Off Topic' as it's not really a CSS question.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 3 days 22 hours ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5344
Points: 2965

dynamic stylesheet change by date

Hi disconnected,
I have to agree with Hugo here and think you should go server side with something like php.
Do a search on google for "php date switch" or something like that and you should find something useful.