"Jorntk" <jo****@yahoo.com> wrote in message news:<40********@news.tm.net.my>...
how can i use javascript to detect the current date to select css style
sheet so that the color style of the site is different every day like
wired.com?
It seems that you could do something simple like:
var dToday = new Date;
That will create a variable containing the current date/time.
You can then use one of the following:
dToday.getMonth()
dToday.getDate()
dToday.getDay()
You can then select a stylesheet by day of week, day of month, or month,
depending upon your preference.
Shawn