时间: 2021-07-31 作者:daque
calendar.js
function atcalendarcontrol(){ var calendar=this; this.calendarpad=null; this.prevmonth=null; this.nextmonth=null; this.prevyear=null; this.nextyear=null; this.gotoday=null; this.calendarclose=null; this.calendarabout=null; this.head=null; this.body=null; this.today=[]; this.currentdate=[]; this.sltdate; this.target; this.source;
/************** 介入日历底板及暗影 *********************/ this.addcalendarpad=function(){ document.write("<div id='divcalendarpad' style='position:absolute;top:100;left:0;width:255;height:167;display:none;'>"); document.write("<iframe frameborder=0 height=168 width=255></iframe>"); document.write("<div style='position:absolute;top:4;left:4;width:248;height:164;background-color:#336699;'></div>"); document.write("</div>"); calendar.calendarpad=document.all.divcalendarpad; } /************** 介入日历面板 *********************/ this.addcalendarboard=function(){ var board=this; var divboard=document.createelement("div"); calendar.calendarpad.insertadjacentelement("beforeend",divboard); divboard.style.csstext="position:absolute;top:0;left:0;width:250;height:166;border:1 outset;background-color:buttonface;";