ecampsite.co.uk
06 Dec 2005, 03:05 PM
Hi guys,
Here's one to rack your brains over.
I want to use a javascript in order to change the color of some text depending on the current date. For example, i want to define 2 dates, and if the current date is within those 2 dates it displays one colored text and if it is outside that date it displays a different colored text.
To get an example of what i mean go to www.ecampsite.co.uk/somerset.php
If a campsite is open, the text will be green, and if it is closed it is orange. Is there any way to automate this with javascript??
Your input regarding this will be invaluable!
Thank you
Craig
Here's one to rack your brains over.
I want to use a javascript in order to change the color of some text depending on the current date. For example, i want to define 2 dates, and if the current date is within those 2 dates it displays one colored text and if it is outside that date it displays a different colored text.
To get an example of what i mean go to www.ecampsite.co.uk/somerset.php
If a campsite is open, the text will be green, and if it is closed it is orange. Is there any way to automate this with javascript??
Your input regarding this will be invaluable!
Thank you
Craig