Javascript Calendar
This handy Javascript calendar can be included on any Web page.
Features:
- Select month from dropdown list; month names can be displayed in several languages
- Change year by typing or press plus/minus or up/down cursor keys
- Buttons cycle to previous or next month
- Appearance customizable through CSS file
Download copies of calendar.js and calendar.css files and include the highlighted statements below in your HTML document:
<html> <head> ... <link rel="stylesheet" href="calendar.css" type="text/css"/> <script src="calendar.js" type="text/javascript"></script> ... </head> <body onload="initCal('cal','en',0);"> ... <div id="cal"></div> ... </body> </html>
The arguments to initCal are:
- container element's id
- language code ('en'=English, 'fr'=French, etc.; see calendar.js for supported languages)
- start-day of the week (0=Sunday, 1=Monday)