Popup Calendar 1.0 - DHTML Lab | 10 | WebReference

Popup Calendar 1.0 - DHTML Lab | 10


Logo

Pop-up Calendar 1.0
The Calendar Attributes, Part 2



 
months months =
"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec"

Provides the month names used in the calendar display.

You can change the values to reflect the standard month name display standards in the area your website is most used. Note that the month names are a single comma-separated string.

The script provides a default months value of Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec.

Usage Suggestion:
Don't change unless your website addresses a non English-speaking audience.

 
days days = "Su,Mo,Tu,We,Th,Fr,Sa"

Provides the day-of-week names used in the calendar display.

You can change the values to reflect the standard day name display standards in the area your website is most used, or your personal preference. Note that the day names are a single comma-separated string, beginning with the value for Sunday.

The script provides a default days value of Su,Mo,Tu,We,Th,Fr,Sa.

Usage Suggestion:
Don't change unless your website addresses a non English-speaking audience, or you prefer a different scheme like, for example, S,M,T,W,T,F,S

 
firstday firstday = "Su"
firstday = "Mo"

Specifies the day-of-week used as the first-day-of-the-week in the calendar display.

Most western calendars begin with Sunday or Monday.

You can change the value to reflect the standard in the area your website is most used, or your personal preference.

Note that the value must use the same syntax as in the days parameter.
If the days parameter is S,M,T,W,T,F,S, and you want Monday to be displayed as the first day of the week, then you should give firstday a value of M.

The script provides a default firstday value of Mo.

Usage Suggestion:
Change if changes have been made to the days parameter, or to start the week with a different day.

On the next page: formatting the date display in input elements.



Send a comment or suggestion to Peter Belesis

Created: July 20, 2004
Revised: July 20, 2004

URL: http://webreference.com/dhtml/column67/6.html