📄 calendar.htm
字号:
<HTML><HEAD>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<STYLE>.pop {
COLOR: #000000; FONT-FAMILY: 宋体, "Arial"; FONT-SIZE: 9pt
}
.hdr {
BACKGROUND: #ffffdd
}
.hdrA {
CURSOR: hand
}
.ndt {
HEIGHT: 19px; POSITION: absolute; WIDTH: 19px
}
.bdt {
HEIGHT: 19px; POSITION: absolute; WIDTH: 19px
}
.dt {
CURSOR: hand; HEIGHT: 19px; POSITION: absolute; WIDTH: 19px
}
.sdt {
HEIGHT: 19px; POSITION: absolute; WIDTH: 19px
}
</STYLE>
<META content="Microsoft FrontPage 4.0" name=GENERATOR></HEAD>
<BODY aLink=#990000 bgColor=#ffffff link=#990000 onload=DoLoad() text=#000000
vLink=#990000>
<TABLE border=0 cellPadding=0 cellSpacing=0
style="BACKGROUND: white; BORDER-BOTTOM: #111177 1px solid; BORDER-LEFT: #111177 1px solid; BORDER-RIGHT: #111177 1px solid; BORDER-TOP: #111177 1px solid; FONT: 8pt arial">
<TBODY>
<TR>
<TD height=20>
<TABLE border=0 cellPadding=0 cellSpacing=0 height=20
style="FONT: 8pt arial">
<TBODY>
<TR>
<TD class=hdrA id=PrevDiv width=20><IMG align=absMiddle
alt="Show Previous Month" height=21 id=Prev onclick=PC();
src="calendar.files/prev.gif" width=20></TD>
<TD align=middle class=hdr width=101><SPAN
id=YearTitle></SPAN> . <SPAN id=MonthTitle></SPAN></TD>
<TD class=hdrA id=NextDiv width=20><IMG align=absMiddle
alt="Show Next Month" height=21 id=Next onclick=NC();
src="calendar.files/next.gif" width=20></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD>
<TABLE border=0 cellPadding=0 cellSpacing=0>
<TBODY>
<TR>
<TD><IMG height=20 id=WeekImg src="calendar.files/week0.gif"
width=141></TD></TR>
<TR>
<TD align=middle style="POSITION: relative"><IMG class=sdt height=19
id=SelDate src="calendar.files/seldate.gif" style="DISPLAY: none"
width=19> <IMG height=121 id=MonthImg
src="calendar.files/nodate.gif"
style="LEFT: 0px; POSITION: relative; TOP: 0px" width=141>
<DIV id=BKIMG1><IMG height=19 src="calendar.files/date.gif"
width=19><IMG height=19 src="calendar.files/date.gif" width=19><IMG
height=19 src="calendar.files/date.gif" width=19><IMG height=19
src="calendar.files/date.gif" width=19><IMG height=19
src="calendar.files/date.gif" width=19><IMG height=19
src="calendar.files/date.gif" width=19> <IMG height=19
src="calendar.files/date.gif" width=19><IMG height=19
src="calendar.files/date.gif" width=19><IMG height=19
src="calendar.files/date.gif" width=19><IMG height=19
src="calendar.files/date.gif" width=19><IMG height=19
src="calendar.files/date.gif" width=19><IMG height=19
src="calendar.files/date.gif" width=19> <IMG height=19
src="calendar.files/date.gif" width=19><IMG height=19
src="calendar.files/date.gif" width=19><IMG height=19
src="calendar.files/date.gif" width=19><IMG height=19
src="calendar.files/date.gif" width=19><IMG height=19
src="calendar.files/date.gif" width=19><IMG height=19
src="calendar.files/date.gif" width=19> <IMG height=19
src="calendar.files/date.gif" width=19><IMG height=19
src="calendar.files/date.gif" width=19><IMG height=19
src="calendar.files/date.gif" width=19><IMG height=19
src="calendar.files/date.gif" width=19><IMG height=19
src="calendar.files/date.gif" width=19><IMG height=19
src="calendar.files/date.gif" width=19> <IMG height=19
src="calendar.files/date.gif" width=19><IMG height=19
src="calendar.files/date.gif" width=19><IMG height=19
src="calendar.files/date.gif" width=19><IMG height=19
src="calendar.files/date.gif" width=19><IMG height=19
src="calendar.files/date.gif" width=19><IMG height=19
src="calendar.files/date.gif" width=19> <IMG height=19
src="calendar.files/date.gif" width=19><IMG height=19
src="calendar.files/date.gif" width=19><IMG height=19
src="calendar.files/date.gif" width=19><IMG height=19
src="calendar.files/date.gif" width=19><IMG height=19
src="calendar.files/date.gif" width=19><IMG height=19
src="calendar.files/date.gif" width=19> <IMG height=19
src="calendar.files/date.gif" width=19><IMG height=19
src="calendar.files/date.gif" width=19><IMG height=19
src="calendar.files/date.gif" width=19><IMG height=19
src="calendar.files/date.gif" width=19><IMG height=19
src="calendar.files/date.gif" width=19><IMG height=19
src="calendar.files/date.gif" width=19> </DIV><IMG class=ndt
height=19 id=Today onclick=TC() src="calendar.files/ring.gif"
style="DISPLAY: none" width=19></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD align=right height=20><A class=pop
href="javascript:CC()">关闭窗口</A></TD></TR></TBODY></TABLE>
<SCRIPT>
<!--
var g_fCalLoaded=false;
var da=document.all;
var wp=window.parent;
var cf=wp.document.all.CalFrame;
var bdc=da.BKIMG1.children;
var dMin;
var dMax;
var XOff=2;
var YOff=1;
var XSize=20;
var YSize=20;
var g_dC=-1;
var g_mC=-1;
var g_yC=-1;
var g_dI=-1;
var g_mI=-1;
var g_yI=-1;
function DoLoad()
{
for(i=0;i<7;i++)
{
for(j=0;j<6;j++)
{
var t=j*7+i;
bdc[t].day=t+1;bdc[t].onclick=BC;bdc[t].className="dt";bdc[t].style.left=da.MonthImg.offsetLeft+XOff+XSize*i-1;bdc[t].style.top=da.MonthImg.offsetTop+YOff+YSize*j;}}}
function TC(){if(event.srcElement.className=="dt"){var dt=new Date();wp.SetDate(dt.getDate(),dt.getMonth()+1,dt.getFullYear());cf.style.display="none";}event.cancelBubble = true;}
function BC(){if(event.srcElement.className=="dt"){var iDay = event.srcElement.day;iDay-=GetDOW(1,g_mC,g_yC);wp.SetDate(iDay,g_mC,g_yC);cf.style.display="none";}event.cancelBubble=true;}
function CC() {cf.style.display="none";}
function NC(){if(g_mC==12) SetDate(g_dC,1,g_yC+1);else SetDate(g_dC,g_mC+1,g_yC);}
function PC(){if(g_mC==1) SetDate(g_dC,12,g_yC-1);else SetDate(g_dC,g_mC-1,g_yC);}
function SetInputDate(day,month,year) {g_dI = day;g_mI = month;g_yI = year;}
function FmtTitle(str){var r=str.charAt(0);for(i=1;i<str.length;i++) r=r+" "+str.charAt(i);return r; }
function SetMinMax(min,max) {dMin=min;dMax=max;}
function SetDate(day, month, year)
{
da.WeekImg.src="week"+wp.GetDowStart()+".gif";
da.MonthImg.src="w"+GetDOW(1,month,year)+"d"+GetMonthCount(month,year)+".gif";
da.MonthTitle.innerHTML=FmtTitle(rgMN[month-1]);
da.YearTitle.innerHTML=FmtTitle(year.toString());
var dt=new Date();
var s,n,v,d;
d="none";
if(month==dt.getMonth()+1&&year==dt.getFullYear())
{
iBox=dt.getDate()+GetDOW(1,dt.getMonth()+1,dt.getFullYear())-1;
if(ValidDate(dt.getDate(),dt.getMonth()+1,dt.getFullYear()))
n="dt";
else
n="bdt";
da.Today.className=n;
da.Today.style.left=bdc[iBox].style.left;
da.Today.style.top=bdc[iBox].style.top;
d="block";
}
da.Today.style.display=d;
d="none";
if(-1!=g_dI&&month==g_mI&&year==g_yI)
{
iBox=g_dI+GetDOW(1,g_mI,g_yI)-1;
da.SelDate.style.left=bdc[iBox].style.left;
da.SelDate.style.top=bdc[iBox].style.top;
d="block";
}
da.SelDate.style.display=d;
var i=0;
var iMin=GetDOW(1,month,year);
var iMax=GetMonthCount(month,year)+GetDOW(1,month,year);
for(;i<iMin;i++)
{
bdc[i].src="nodate.gif";
bdc[i].className="ndt";
}
if(month==(dMin.getMonth()+1))
{
iBox=dMin.getDate()+GetDOW(1,dMin.getMonth()+1,dMin.getFullYear())-1;
for(;i<iMax;i++)
{
if(i<iBox)
{
s="date.gif";
n="dt";
}
else
{
s="date.gif";
n="dt";
}
bdc[i].src=s;
bdc[i].className=n;
}
}
else if(month==(dMax.getMonth()+1))
{
iBox=dMax.getDate()+GetDOW(1,dMax.getMonth()+1,dMax.getFullYear())-1;
for(;i<iMax;i++)
{
if(i<iBox+1)
{
s="date.gif";
n="dt";
}
else
{
s="date.gif";
n="dt";
}
bdc[i].src=s;
bdc[i].className=n;
}
}
else
{
for(;i<iMax;i++)
{
bdc[i].src="date.gif";
bdc[i].className="dt";
}
}
for(;i<42;i++)
{
bdc[i].src="nodate.gif";
bdc[i].className="ndt";
}
g_dC=day;
g_mC=month;
g_yC=year;
}
function ValidDate(day,month,year){if( year<dMin.getFullYear() || (year==dMin.getFullYear()&&month<(dMin.getMonth()+1)) || (year==dMin.getFullYear()&&month==(dMin.getMonth()+1)&&day<dMin.getDate()) ) return false;else if( year>dMax.getFullYear() || (year==dMax.getFullYear()&&month>(dMax.getMonth()+1)) || (year==dMax.getFullYear()&&month==(dMax.getMonth()+1)&&day>dMax.getDate()) ) return false;else return true;}
function GetMonthCount(month,year){var c=rgMC[month-1];if((2==month)&&IsLeapYear(year)) c++;return c;}
function IsLeapYear(year) {return( 0==year%4 && ((year%100!=0)||(year%400==0)) );}
function GetDOW(day,month,year)
{
var dt=new Date(year,month-1,day);
return (dt.getDay()+(7-wp.GetDowStart()))%7;
}
function cityname(citys){return true;}var rgMN=new Array(12);rgMN[0]="1";rgMN[1]="2";rgMN[2]="3";rgMN[3]="4";rgMN[4]="5";rgMN[5]="6";rgMN[6]="7";rgMN[7]="8";rgMN[8]="9";rgMN[9]="10";rgMN[10]="11";rgMN[11]="12";var rgMC=new Array(12);rgMC[0]=31;rgMC[1]=28;rgMC[2]=31;rgMC[3]=30;rgMC[4]=31;rgMC[5]=30;rgMC[6]=31;rgMC[7]=31;rgMC[8]=30;rgMC[9]=31;rgMC[10]=30;rgMC[11]=31;g_fCalLoaded=true;
//-->
</SCRIPT>
</BASEFONT></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -