- <!--
- /**
- * Calendar
- * @param beginYear 1990
- * @param endYear 2010
- * @param language 0(zh_cn)|1(en_us)|2(en_en)|3(zh_tw)|4(jp)
- * @param patternDelimiter "-"
- * @param date2StringPattern "yyyy-MM-dd"
- * @param string2DatePattern "ymd"
- * @version V20060401
- * @version V20061217
- * @version V20080809 add to google project
- * @version V20081226 add language support for japanese
- * @version V20090104 add fix some bugs in help.html
- use style.display replace the style.visibility
- some enhancements and changes
- * @author KimSoft (jinqinghua [at] gmail.com)
- * NOTE! you can use it free, but keep the copyright please
- * IMPORTANT:you must include this script file inner html body elment
- * @see http://code.google.com/p/kimsoft-jscalendar/
- */
- function Calendar(beginYear, endYear, language, patternDelimiter, date2StringPattern, string2DatePattern,showTime) {
- this.showTime=showTime;
- this.beginYear = beginYear || 1990;
- this.endYear = endYear || 2020;
- this.language = language || 0;
- this.patternDelimiter = patternDelimiter || "-";
- this.date2StringPattern = date2StringPattern || Calendar.language["date2StringPattern"][this.language].replace(//-/g, this.patternDelimiter);
- this.string2DatePattern = string2DatePattern || Calendar.language["string2DatePattern"][this.language];
- this.dateControl = null;
- this.panel = this.getElementById("__calendarPanel");
- this.iframe = window.frames["__calendarIframe"];
- this.form = null;
- this.date = new Date();
- this.year = this.date.getFullYear();
- this.month = this.date.getMonth();
- this.house = this.date.getHours();
- this.min = this.date.getMinutes();
- this.second=this.date.getSeconds();
- this.colors = { "bg_cur_day":"#00CC33","bg_over":"#EFEFEF","bg_out":"#FFCC00"}
- };
- Calendar.language = {
- "year" : ["/u5e74", "", "", "/u5e74","/u5e74"],
- "months" : [
- ["/u4e00/u6708","/u4e8c/u6708","/u4e09/u6708","/u56db/u6708","/u4e94/u6708","/u516d/u6708","/u4e03/u6708","/u516b/u6708","/u4e5d/u6708","/u5341/u6708","/u5341/u4e00/u6708","/u5341/u4e8c/u6708"],
- ["JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC"],
- ["JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC"],
- ["/u4e00/u6708","/u4e8c/u6708","/u4e09/u6708","/u56db/u6708","/u4e94/u6708","/u516d/u6708","/u4e03/u6708","/u516b/u6708","/u4e5d/u6708","/u5341/u6708","/u5341/u4e00/u6708","/u5341/u4e8c/u6708"],
- ["/u4e00/u6708","/u4e8c/u6708","/u4e09/u6708","/u56db/u6708","/u4e94/u6708","/u516d/u6708","/u4e03/u6708","/u516b/u6708","/u4e5d/u6708","/u5341/u6708","/u5341/u4e00/u6708","/u5341/u4e8c/u6708"]
- ],
- "weeks" : [["/u65e5","/u4e00","/u4e8c","/u4e09","/u56db","/u4e94","/u516d"],
- ["Sun","Mon","Tur","Wed","Thu","Fri","Sat"],
- ["Sun","Mon","Tur","Wed","Thu","Fri","Sat"],
- ["/u65e5","/u4e00","/u4e8c","/u4e09","/u56db","/u4e94","/u516d"],
- ["/u65e5","/u6708","/u706b","/u6c34","/u6728","/u91d1","/u571f"],
- ],
- "clear" : ["/u6e05/u7a7a", "Clear", "Clear", "/u6e05/u7a7a"
JS日历(带时间选择功能) kimsoft-jscalendar 增强版
最新推荐文章于 2024-05-04 23:19:14 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)