// // // //
// // function calendar(objname) { this.style = { bordercolor : "#909eff", //边框颜色 headerbackcolor : "#909eff", //表头背景颜色 headerfontcolor : "#ffffff", //表头字体颜色 bodybarbackcolor : "#f4f4f4", //日历标题背景色 bodybarfontcolor : "#000000", //日历标题字体色 bodybackcolor : "#ffffff", //日历背景色 bodyfontcolor : "#000000", //日历字体色 bodyholidayfontcolor : "#ff0000", //假日字体色 watermarkcolor : "#d4d4d4", //背景水印色 moredaycolor : "#cccccc" }; this.showmoreday = false; //是否显示上月和下月的日期 this.obj = objname; this.date = null; this.mouseoffset = null; this.dateinput = null; this.timer = null; }; calendar.prototype.tostring = function() { var str = this.getstyle(); str += ' '; return str; }; calendar.prototype.getstyle = function() { var str = '\n'; return str; }; calendar.prototype.getheader = function() { var str = '<< | \n'; str += '< | \n'; str += '0 | \n'; str += '0 | \n'; str += '> | \n'; str += '>> |
\n'; } str += ' |
今天:'+new date().toformatstring("yyyy年mm月dd日")+' |
' + day[i] + ' | \n'; } str += '
' + _year + '年 | \n'; str += '||
|
'+i+'月 |