您现在的位置:首页 >> 前端 >> 内容

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

时间:2017/1/3 9:39:00 点击:

  核心提示:if (m == 1(i + 1) == term2) cY = cyclical(y - 1900 + 36);//依节气月柱, 以「节」为界 if ((i + 1) == firstNode) c...
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;
    }
}
//农历节日

Tags:精通 通C CS SS 
作者:网络 来源:相濡以沫si