时间: 2021-07-31 作者:daque
this.getmonthlen=function(theyear, themonth) { themonth--; var oneday = 1000 * 60 * 60 * 24; var thismonth = new date(theyear, themonth, 1); var nextmonth = new date(theyear, themonth + 1, 1); var len = math.ceil((nextmonth.gettime() - thismonth.gettime())/oneday); return len; } /************** 湮没日历 *********************/ this.hide=function(){ //calendar.cleareventkey(); calendar.calendarpad.style.display="none"; } /************** 从这边发端 *********************/ this.setup=function(defaultdate){ calendar.addcalendarpad(); calendar.addcalendarboard(); calendar.setdefaultdate(); } /************** 对于agetimecalendar *********************/ this.about=function(){ /*//alert("agetime calendar v1.0\n\nwww.agetime.com\n"); popleft = calendar.calendarpad.style.pixelleft+4; poptop = calendar.calendarpad.style.pixeltop+25; var popup = window.createpopup(); var popupbody = popup.document.body; popupbody.style.csstext="border:solid 2 outset;font-size:9pt;background-color:#f0f0f0;"; var pophtml = "<span style='color:#336699;font-size:12pt;'><u>对于 agetimecalendar</u></span><br><br>"; pophtml+="本子: v1.0<br>日子: 2004-03-13"; popupbody.innerhtml=pophtml; popup.show(popleft,poptop,240,136,document.body); */ var strabout = "about agetimecalendar\n\n"; strabout+="-\t: 对于\n"; strabout+="x\t: 湮没\n"; strabout+="<<\t: 上一年\n"; strabout+="<\t: 上一月\n";