-
<html>
-
<head>
-
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">
-
<title>万年历-石家庄渣浆泵-石家庄瑜伽馆</title>
-
<style>
-
th{color:#FFF;background-color:#F89807}
-
td{color:#000;background-color:#FDEDCC}
-
input,textarea,th,td{font-size:9pt}
-
</style>
-
</head>
-
<body>
-
<div id=\"hyout\"></div>
-
<script>
-
//万年历程菜虫制作 http://happybug.myrice.com
-
var hy=new Date()
-
var hyd=new Date()
-
var cnt=new Array(\"日\",\"一\",\"二\",\"三\",\"四\",\"五\",\"六\")
-
function hyout(hyy,hym){
-
var outxt=\"\"
-
outxt+=\"
\"
-
outxt+=hym+\"月
\"
-
outxt+=\"
\"
-
for(i=0;i<cnt.length;i++){
-
outxt+=\"
| \"+cnt[i]+\" | \"
-
}
-
outxt+=\"
\"
-
var j=0
-
hyd.setYear(hyy)
-
hyd.setMonth(--hym)
-
hyd.setDate(1)
-
for(var i=1;i<=42;i++){
-
if((i%7)==1&&i>1)outxt+=\"
\"
-
if((i<=hyd.getDay())||(hyd.getMonth()!=hym)){
-
outxt+=\"
| | \"
-
}else{
-
hyd.setDate(++j)
-
if(hyd.getMonth()==hym){
-
if(hyd.getDate()==hy.getDate()&&hyd.getMonth()==hy.getMonth()&&hyd.getYear()==hy.getYear()){
-
outxt+=\"
| \"+j+\" | \"
-
}else{
-
outxt+=\"
| \"+j+\" | \"
-
}
-
}else{
-
outxt+=\"
| | \"
-
}
-
}
-
}
-
outxt+=\"
|
|---|
|
|---|
\"
-
return outxt
-
}
-
function hyouty(hyy){
-
hyy=parseFloat(0+hyy)
-
if(hyy==0) hyy=hy.getYear()
-
outxt=\"\"
-
document.all[\"hyout\"].innerHTML=outxt
-
}
-
hyouty(hy.getYear())
-
</script>
-
</body>
-
</html>
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29737856/viewspace-1320922/
,如需转载,请注明出处,否则将追究法律责任。