Xin Calendar Mods

Copyright 2003 Xin Yang

Mod:Month/Year List
Script:mod_list.js
Description:to use selection lists for month/year scrolling

Core: - In-Page
- Popup Window

Interface: - setListFormat()

Usage: - setListFormat(month_format, year_range, bgcolor) ... the "month_format" could be "mm", "Mon", "MON", "Month" or "MONTH"; the "year_range" defines how many years to show for the year list, for example, if current year is 2000 and "year_range" is set to 5, then the year list will show from 1995 to 2005; the "bgcolor" is the background color for the selection lists.

include the mod script after the core script include line and before the config script include line:

<script language="javascript" src="mod_list.js"<>/script>

Demo: <script language="javascript" src="cal_core.js"<>/script>
<script language="javascript" src="mod_list.js"<>/script>

<script language="javascript">
addCalendar("date", "date", "", "", "cal-1", "cal-2", 0, 0);
setColor("#ffffff", "#999999", "#ffffff", "#ffffff", "#999999", "#ffffff", "#ffffff", "#cccccc", "#ffffff", "#000000", "#ffffff");
setListFormat("Month", 5, "#ffffff");
</script>

 (this is a lite version, you can scroll the month and year with the full verison)