时间: 2021-07-31 作者:daque
}
trrow = tbboard.insertrow(2); var cndatename = new array("周日","周一","周二","周三","周四","周五","周六"); for (var i = 0; i < 7; i++) { tbcell=trrow.insertcell(i) tbcell.innertext=cndatename[i]; tbcell.align="center"; tbcell.width=35; tbcell.style.csstext="cursor:default;border:1 solid #99cccc;background-color:#99cccc;"; }
/*********** calendar body ***************/ trrow = tbboard.insertrow(3); tbcell=trrow.insertcell(0); tbcell.colspan=7; tbcell.height=97; tbcell.valign="top"; tbcell.bgcolor="#f0f0f0"; var tbbody=document.createelement("table"); tbcell.insertadjacentelement("beforeend",tbbody); tbbody.style.csstext="position:relative;top:0;left:0;width:245;height:103;font-size:9pt;" tbbody.cellpadding=0; tbbody.cellspacing=1; calendar.body=tbbody; } /************** 介入功效按钮大众款式 *********************/ this.inserttbcell=function(trrow,cellindex,txt,tralign,tbcolspan){ var tbcell=trrow.insertcell(cellindex); if(tbcolspan!=undefined) tbcell.colspan=tbcolspan;
var btncell=document.createelement("button"); tbcell.insertadjacentelement("beforeend",btncell); btncell.value=txt; btncell.style.csstext="width:100%;border:1 outset;background-color:buttonface;"; btncell.onmouseover=function(){ btncell.style.csstext="width:100%;border:1 outset;background-color:#f0f0f0;";