- 关 键 词:
- css
divBoard.insertAdjacentElement("beforeEnd",tbBoard);
tbBoard.style.CSSText="position:absolute;top:0;left:0;width:100%;height:10;font-size:9pt;";
tbBoard.cellPadding=0;
tbBoard.cellSpacing=1;
tbBoard.bgColor="#333333";
/************** 设置各功能按钮的功能 *********************/
/*********** Calendar About Button ***************/
trRow = tbBoard.insertRow(0);
calendar.calendarAbout=calendar.insertTbCell(trRow,0,"-","center");
calendar.calendarAbout.onclick=function(){calendar.about();}
/*********** Calendar Head ***************/
tbCell=trRow.insertCell(1);
tbCell.colSpan=5;
tbCell.bgColor="#99CCFF";
tbCell.align="center";
tbCell.style.CSSText = "cursor:default";
calendar.head=tbCell;
/*********** Calendar Close Button ***************/
tbCell=trRow.insertCell(2);
calendar.calendarClose = calendar.insertTbCell(trRow,2,"x","center");
calendar.calendarClose.title="关闭";
calendar.calendarClose.onclick=function(){calendar.hide();}
/*********** Calendar PrevYear Button ***************/
trRow = tbBoard.insertRow(1);
calendar.prevYear = calendar.insertTbCell(trRow,0,"<<","center");
calendar.prevYear.title="上一年";
calendar.prevYear.onmousedown=function(){
calendar.currentDate[0]--;
calendar.show(calendar.target,calendar.currentDate[0]+"-"+calendar.currentDate[1]+"-"+calendar.currentDate[2],calendar.source);
}
/*********** Calendar PrevMonth Button ***************/
calendar.prevMonth = calendar.insertTbCell(trRow,1,"<","center");
calendar.prevMonth.title="上一月";
calendar.prevMonth.onmousedown=function(){
相关专题
- JavaScript教程 (577次浏览)
- 用javascript实现浮点数的截取小数位数,并 (514次浏览)
- 用javascript操作xml (335次浏览)
- javascript表单之间的数据传递 (327次浏览)
- JavaScript自定义模式对话框 (140次浏览)
- 用javascript的正则表达式来验证Email地址是 (135次浏览)
- 实用javaScript技术总结(1):屏蔽类 (119次浏览)
- asp结合javascript,xml,sqlserver制作的无 (110次浏览)
- 107条Javascript的常用语句 (101次浏览)
- Javascript实例教程(1) 目录 (74次浏览)



