特效描述:基于jquery实现 可查询节假日 万年历代码。基于jquery实现可查询节假日万年历代码
代码结构
1. 引入CSS
2. 引入JS
3. HTML代码
var gNum;
for (var i = 0; i < 6; i++) {
document.write('
');
for (var j = 0; j < 7; j++) {
gNum = i * 7 + j ;
document.write('
if (j == 0) document.write('color=red');
if (j == 6)
if (i % 2 == 1) document.write('color=red');
else document.write('color=red');
document.write(' TITLE="">
');
}
document.write('
');
}
//提交
function h_submit(){
alert(hDays);
}
//重置
function rebuild(){
hDays=[];
}