221
CHAPTER
Adding Interactivity and Multimedia 9
TIP
Can I customize the calendar?
Yes. You can set parameters such as the default date for the calendar, the range of dates to be displayed,
and more using configuration settings in the JavaScript. You can also create calendars that display more
than one month at a time and a navigator to jump to a specific date. The calendar’s appearance can be
controlled via CSS. All of these settings are described on the calendar’s home page at http://developer.
yahoo.com/yui/calendar/.
8 At the bottom of the code,
type <script
type=”text/
javascript”>.
9 Type var cal1 = new
YAHOO.widget.
Calendar(“cal1
Container”);.
0 Press.
! Type cal1.render();.
@ Press.
Type .
● When the page is viewed in
the browser, the calendar
appears.