文件名称:
精美的js日期控件,可以多个参数设定。
开发工具:
文件大小: 174kb
下载次数: 0
上传时间: 2010-12-24
详细说明: Properties Following the first object, the class also accepts an optional second object that may contain any of the following properties to help customize Calendar to your website: * blocked - An array of blocked (disabled) dates in the following format: 'day month year'. The syntax is similar to cron: the values are separated by spaces and may contain * (asterisk) - (dash) and , (comma) delimiters. For example blocked: ['1 1 2007'] would disable January 1, 2007; blocked: ['* 1 2007'] would disable all days (wildcard) in J anuary, 2007; blocked: ['1-10 1 2007'] would disable January 1 through 10, 2007; while blocked: ['1,10 1 2007'] would disable January 1 and 10, 2007. In combination: blocked: ['1-10,20,22,24 1-3 *'] would disable 1 through 10, plus the 22nd and 24th of January through March for every (wildcard) year. There is an optional additional value which is day of the week (0 - 6 with 0 being Sunday). For example blocked: ['0 * 2007 0,6'] would disable all weekends (saturdays and sundays) in 2007. * classes - An array of 12 CSS classes that are applied to the calendar construct: calendar, prev, next, month, year, today, invalid, valid, inactive, active, hover, hilite. It is not necessary (as of RC3) to pass all 11 classes in the array: if you only wanted to change the 1st class you would set classes: ['alternate']; if you only wanted to change the 1st and 4th classes you would need to set classes: ['alternate', '', '', 'mes']. The first class, by default 'calendar', is applied to the div that contains the calendar element, the calendar button and the input or select it is appended to. The 'hilite' class (as of RC4) is applied to all days between 2 or more selected dates in multi-calendar functionality - see the demo for an example. * days - An array of the 7 names of the days of the week, starting with sunday. * direction - A positive or negative integer that determines the calendar's direction: n (a positive number) the calendar is future-only beginning at n days after today; -n (a negative number) the calendar is past-only ending at n days before today; 0 (zero) the calendar has no future or past restrictions (default). Note if you would like the calendar to be directional starting from today–as opposed to (1) tomorrow or (-1) yesterday–use a positive or negative fraction, such as direction: .5 (future-only, starting today). * draggable - A boolean value, true or false, to indicate if the calendar element will be draggable–useful in case the calendar obstructs (or is obstructed by) some other element on the page. Note, requires Mootools to be compiled with the Drag component. * months - An array of the 12 names of the month, starting with january. * navigation - An integer–0, 1 or 2–indicating which navigation method the class will use: traditional navigation (1) where left and right arrows allow the user to navigate by month (default); improved navigation (2) where the user can navigate by month or year; and static navigation (0) which is actually no navigation at all. * offset - An integer that indicates the first day of the week, with 0 being Sunday (default). * onHideStart, onHideComplete, onShowStart, onShowComplete - Event handlers that can be used to trigger your own scripts. * pad - An integer, the minimum number of days between calendars with multi-calendar functionality. For example: 1 (default) would enforce multiple calendars to space at least 1 day between picked dates; 7 would enforce a space of at least 1 week; while 0 (no padding) would allow multiple calendars to occupy the same date. * tweak - An object with { x: 0, y: 0} values that will "tweak" the calendar's placement on the page by x number of pixels horizontally and y number of pixels vertically. //参数说明 //日期格式字符(d, D, j, l, N, w, S, F, m, M, n, Y, y)分别对应(01, Mon, 01, Mon, 2, 2, st, 2月, 02, 2月, 02, 2010, 10) //blocked:禁止选择的日期。blocked: ['日 月 年 周(可选)'],blocked: ['3 * *']:表示禁止选择所有年份的所有月份的3号,blocked: ['1-10 3 2010']:表示禁止选择2010年3月1日到10日的日期,blocked: ['1,10 3 2010']:表示禁止选择2010年3月的1日和10日,blocked: ['1-10,20,22,24 1-3 *']:表示禁止所有所份的1到3月份的1到10日,20日,22日,24日的日期,blocked: ['0 * 2010 0,6']:表示禁止选择2010年所有月份的周六和周日 //classes:3种风格样式,calendar,dashboard,i-heart-ny,默认为calendar //days:定义星期显示的文字,默认为英文。days: ['日','一','二','三','四','五','六'] //direction:可选择日期的方向。0:表示不限制,负数:表示只可选当前日期的前负数值天的日期,正数表示只可选当前日期的前(正数值-1)天的日期 //draggable:是否可拖动,值为true和false,默认为true //months:定义月份显示的文字,默认为英文。months:['1月','2月','3月','4月','5月','6月','7月','8月','9月','10月','11月','12月'] //navigation:年月的导航。0:表示没有导航,1:有月导航按钮(默认值),2:有年月导航按钮 //offset:指示一周的第一天是星期几,默认为0,指星期天 //onHideStart, onHideComplete, onShowStart, onShowComplete:事件,可用于触发您自己的脚本处理程序 //pad:多日历显示,参考官网:http://www.electricprism.com/aeron/calendar/ //tweak:日历控件的相对座标 ...展开收缩
(系统自动生成,下载前可以参看下载内容)
下载文件列表
相关说明
- 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
- 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。
- 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
- 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
- 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
- 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.