Popup Calendar 1.0 - DHTML Lab | 13 | WebReference

Popup Calendar 1.0 - DHTML Lab | 13


Logo

Pop-up Calendar 1.0
The Calendar Attributes, Part 5



 
navbar_style   navbar_style =
"background-color: black;
font-family: Courier;
color: red;
"
Overrides any default style properties of the "navigation bar," which includes the month/year display and the navigation arrows.
Value should be in regular CSS syntax as a single-line string.

The script does not provide a default navbar_style value.

daybar_style   daybar_style =
"background-color: green;
font-family: Courier;
color: black;
"
Overrides any default style properties of the "day bar," that is, the days-of-the-week header.
Value should be in regular CSS syntax as a single-line string.

The script does not provide a default daybar_style value.

 
selecteddate_style   selecteddate_style =
"background-color: yellow;
font-family: serif;
font-style: italics;
color: black;
border-width: 0px;
"
Overrides any default style properties of the "selected date," that is, the date selected by the user by clicking on the calendar or the date entered into an associated form input.
Value should be in regular CSS syntax as a single-line string.

The script does not provide a default selecteddate_style value.

 
weekenddate_style   weekenddate_style =
"background-color: blue;
font-family: serif;
color: red;
border-width:0px;
"
Overrides any default style properties of dates that fall on Saturday or Sunday.
Value should be in regular CSS syntax as a single-line string.

The script does not provide a default weekenddate_style value.

 
othermonthdate_style   othermonthdate_style =
"background-color: lightgrey;
border-width: 0px;
"
Overrides any default style properties of dates that fall on a month other than the displayed month. That is, any dates before the first day of the month or after the end of the month. These dates are not displayed, but you may wish to change non-font-related styles like the background color.
Value should be in regular CSS syntax as a single-line string.

The script does not provide a default othermonthdate_style value.

 
regulardate_style   regulardate_style =
"background-color: red;
font-family: serif;
color: blue;
border-width: 0px;
"
Overrides any default style properties of Monday to Friday dates.
Value should be in regular CSS syntax as a single-line string.

The script does not provide a default regulardate_style value.

On the next page: specifying next and previous month and year navigation.



Send a comment or suggestion to Peter Belesis

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

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