http://59.66.185.110/hungry/cal.html<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<style type="text/css">
body{margin:0;padding:0;}
.ccal{font-size:13px;text-align:center;background:#cccccc;}
.cdate{font-size:11px;}
.ccal-header,a{ font-weight:bold;text-decoration:none;color:#20b080;}
.ccal-today{border-color: #567#abc #abc #567;border-width:1px;border-style:solid;color:#fff;}
.ccal-day{background:#ffffff;border-top:1px solid #abe;}
.ccal-end{background:#ddeedd;border-top:1px solid #abe;}
</style>
</head>
<script>
var CN=["初一","初二","初三","初四","初五","初六","初七","初八","初九","初十","十一","十二","十三","十四","十五","十六","十七","十八","十九","二十","廿一","廿二","廿三","廿四","廿五","廿六","廿七","廿八","廿九","三十", "小寒","大寒","立春","雨水","惊蛰","春分","清明","谷雨","立夏","小满","芒种","夏至","小暑","大暑","立秋","处暑","白露","秋分","寒露","霜降","立冬","小雪","大雪","冬至"];
var M="01101101001000110110101000101011010100100101101010100101010101010100101010101010100101010110100010101011010010010101101010001010110101000101011011001000101101010100101010101010100101010101100100101010110100100101011010100010101101100010010110110010";
var FO="112100010100100100000010002000010100110101000011002111110110110111000011102111111111111111011111112100010000100100000010002000010100100101000011002111110110110111000011102111111111111111011011102100000000100100000010001000010100100101000011002101110110110111000011002111111110111111011011102100000000000000000010001000010100100101000010002100110110110101000011002111111110111111011011102100000000000000000000001000010100100101000010002000110100110101000011002111111110111111000011";
var CY='年',CM='月';
var FD=[5,20,2,18,5,20,4,19,5,20,5,21,6,22,7,22,7,22,8,23,7,22,6,21];
var cfests={};
var n=new Date(),y=n.getFullYear(),m=n.getMonth(),today=Date.UTC(y,m,n.getDate());
function initFestval(y){
var o=new Array(),j;
for(var i=0; i<24; ++i){
j=i>>1;
if(!(i&1))
o[j]=new Array();
o[j][FD[i] + FO.charCodeAt((y-2008)*24+i) -48]=i + 30;
}
return o;
}
function getCName(y,m,d){
if(!cfests[y])cfests[y]=initFestval(y);
if(cfests[y][m][d])
return CN[cfests[y][m][d]];
else{
var i=0,j,r=(Date.UTC(y,m,d)- 1202342400000)/86400000;
while(r >=(j=30 -(M.charAt(i++)=='1')))
r -=j;
return CN[r];
}
}
function update(x){
switch(x){
case 0:break;
case -1:
m--;
if(m==-1){
m=11;
y--;
}
break;
case 1:
m++;
if(m==12){
m=0;
y++;
}
}
var di=0,dt=new Date(y,m,1).getDay(),dm=32 - new Date(y,m,32).getDate();
var html=[];
html.push('<table class="ccal" cellspacing="0" cellpadding="2"><tr><td><a href="javascript:update(-1);">«</a></td><td class="ccal-header" colspan="5">');
html.push(y + CY +(m + 1)+ CM);
html.push('</td><td><a href="javascript:update(1);">»</a></td></tr><tr><tr><td>一</td><td>二</td><td>三</td><td>四</td><td>五</td><td>六</td><td>日</td></tr>');
dt=(dt + 6)% 7;
html.push('<tr>');
while(dt--)
addEmptyCell();
for(var i=1; i<=dm;i++)
addCell(i,getCName(y,m,i),Date.UTC(y,m,i)==today);
while(di<7 )
addEmptyCell();
html.push('</tr></table>');
document.getElementById("cal").innerHTML=html.join('');
function addCell(t,s,h){
if(!di)html.push('<tr>');
html.push('<td class="ccal-',(h?'today':(di<5?'day':'end')),'">',t,'<br/><span class="cdate">',s,'</span></td>');
if(++di==7){
html.push('</tr>');
di=0;
}
}
function addEmptyCell(){
html.push('<td class="ccal-day"> </td>');
di++;
}
}
</script>
<body onLoad="update(0)">
<div id="cal">
</body>
</html>
--
FROM 124.130.79.*