Plum Blossom snow calendar can only be less than or equal to the current date

Source: Internet
Author: User
Tags webcalendar
... This. darkBorder = "# D4D0C8"; // three-dimensional expression color displayed on the date. this. isLessToday = false ;... var o = WebCalendar. calendar. style; WebCalendar. eventSrc = e; if (arguments. length = 0) WebCalendar. objExport = e; if (arguments. length = 1 & typeof (arguments [0]) = "boolean") {WebCalendar. objExport = e; WebCalendar. isLessToday = arguments [0];} else WebCalendar. objExport = eval (arguments [0]); if (arguments. length = 2) {WebCal Endar. objExport = eval (arguments [0]); WebCalendar. isLessToday = arguments [1] ;}... var returnValue; var aa = (arguments. length = 0 )? WebCalendar. day [this. id. substr (8)]: arguments [0]; var a = (arguments. length = 0 )? WebCalendar. day [this. id. substr (8)]. split ("/"): arguments [0]. split ("/"); var d = WebCalendar. format. match (/^ (\ w {4}) (-| \/|. |) (\ w {1, 2}) \ 2 (\ w {1, 2}) $/); if (d = null) {alert ("the date output format you set is incorrect! \ R \ n please redefine WebCalendar. format! "); Return false;} var flag = d [3]. length = 2 | d [4]. length = 2; // determines whether the returned date format must be zero returnValue = flag? A [2] + d [2] + appendZero (a [1]) + d [2] + appendZero (a [0]): a [2] + d [2] + a [1] + d [2] + a [0]; if (WebCalendar. timeShow) {var h = new Date (). getHours (), m = new Date (). getMinutes (), s = new Date (). getSeconds (); returnValue + = flag? "" + AppendZero (h) + ":" + appendZero (m) + ":" + appendZero (s): "" + h + ":" + m + ": "+ s;} if (WebCalendar. isLessToday & Date. parse (aa) <= Date. parse (WebCalendar. today) {WebCalendar. objExport. value = returnValue; hiddenCalendar ();}

 

Attachment download

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.