str += ‘<td Author=”alin” onmouseover=”this.className=’headerOver'” id=”currentYear” style=”width:50px;” onclick=”‘ + this.Obj + ‘.showMenu(true);” onmouseout=”‘ + this.Obj + ‘.hideMenu();this.className=’’;”>0</td>n’;
str += ‘<td Author=”alin” onmouseover=”this.className=’headerOver'” id=”currentMonth” onclick=”‘ + this.Obj + ‘.showMenu(false);” onmouseout=”‘ + this.Obj + ‘.hideMenu();this.className=’’;”>0</td>n’;
str += ‘<td Author=”alin” onmouseover=”this.className=’headerOver'” onmouseout=”this.className=’'” id=”nextMonth” title=”下一月份” style=”cursor:pointer;width:10px;” onclick=”‘+this.Obj+’.onChangeMonth(true);”>></td>n’;
str += ‘<td Author=”alin” onmouseover=”this.className=’headerOver'” onmouseout=”this.className=’'” id=”nextYear” title=”下一年份” style=”cursor:pointer;width:10px;” onclick=”‘+this.Obj+’.onChangeYear(true);”>>></td></tr>n’;
str += ‘</table>n’;
return str;
};
Calendar.prototype.getBody = function()
{
var n = 0;
var str = this.getBodyBar();
str += ‘<table Author=”alin” class=”cdrBody” cellSpacing=”2″ cellPadding=”0″>n’;
for(i = 0; i < 6; i++)
{
str += ‘<tr Author=”alin” align=”center”>’;
for(j = 0; j < 7; j++)
{
str += ‘<td Author=”alin” class=”dayOut” id=”cdrDay’+(n++)+'” width=”13%”></td>n’;
}
str += ‘</tr>’;
}
str += ‘</table>n’;
str += ‘<table Author=”alin” class=”cdrBodyBar” cellSpacing=”2″ cellPadding=”0″><tr align=”center” Author=”alin”><td Author=”alin” style=”cursor:pointer;” onclick=”‘+this.Obj+’.getToday();”>今天:’+new Date().toFormatString(“yyyy年mm月dd日”)+'</td></tr></table>n’;
return str;
};
Calendar.prototype.getBodyBar = function()
{
var str = ‘<table Author=”alin_bar” id=”cdrBodyBar” class=”cdrBodyBar” style=”cursor:move;” cellSpacing=”2″ cellPadding=”0″><tr Author=”alin_bar” align=”center”>n’;
var day = new Array(‘日’,’一’,’二’,’三’,’四’,’五’,’六’);










