精通 CSS+DIV 网页样式与布局 167

if(m==1 && (i+1)==term2) cY=cyclical(y-1900+36);
//依节气月柱, 以「节」为界
if((i+1)==firstNode) cM = cyclical((y-1900)*12+m+13);
//日柱
cD = cyclical(dayCyclical+i);
this[i] = new calElement(y, m+1, i+1, nStr1[(i+this.firstWeek)%7],
lY, lM, lD++, lL,
cY ,cM, cD );
}
//节气
tmp1=sTerm(y,m*2)-1;
tmp2=sTerm(y,m*2+1)-1;
this[tmp1].solarTerms = solarTerm[m*2];
this[tmp2].solarTerms = solarTerm[m*2+1];
//if(m==3) this[tmp1].color = ‘red’; //清明颜色
//国历节日
for(i in sFtv)
if(sFtv[i].match(/^(\d{2})(\d{2})([\s*])(.+) /))if(Number(RegExp. 1)==(m+1)) {
this[Number(RegExp. 2)1].solarFestival1+=RegExp. 4;
//if(RegExp. 3==)this[Number(RegExp. 2)-1].color = ‘red’;
}
//月周节日
for(i in wFtv)
if(wFtv[i].match(/^(\d{2})(\d)(\d)([\s*])(.+) /))if(Number(RegExp. 1)==(m+1)) {
tmp1=Number(RegExp. 2);tmp2=Number(RegExp. 3);
if(tmp1<5)
this[((this.firstWeek>tmp2)?7:0) + 7*(tmp1-1) + tmp2 -
this.firstWeek].solarFestival2 += RegExp.5;  
else {  
tmp1 -= 5;  
tmp3 = (this.firstWeek+this.length-1)%7; //当月最后一天星期?  
this[this.length - tmp3 - 7*tmp1 + tmp2 - (tmp2>tmp3?7:0) -  
1 ].solarFestival2 += RegExp.
5;
}
}
//农历节日

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值