⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dcal.htm

📁 在线招生报名系统 2009 (内附说明)
💻 HTM
📖 第 1 页 / 共 2 页
字号:
		}
		document.write("</tr>");
	}
	document.write("</table>")
}

function fUpdateCal(iYear, iMonth) {
	if(iMonth<1){
		iMonth=12;
		iYear=iYear-1;
	}
	if(iMonth>12){
		iMonth=1;
		iYear++;
	}
	myMonth = fBuildCal(iYear, iMonth);
	//objPrevElement.bgColor = "";
	document.all.calSelectedDate.value = "";
	document.all.tbSelYear.value=iYear;
	document.all.tbSelMonth.value=iMonth;
	for (w = 1; w < 7; w++) {
		for (d = 0; d < 7; d++) {
			if (!isNaN(myMonth[w][d])) {
				var nDate = new Date();
				if(myMonth[w][d]==nDate.getDate()&&iYear==nDate.getFullYear()&&iMonth==nDate.getMonth()+1){
					calDateText[((7*w)+d)-7].innerHTML = "<table cellpadding=0 cellspacing=0 border=0 width=100% ><tr><td style='filter:Alpha(Opacity=200, FinishOpacity=0, Style=2, StartX=0, StartY=0, FinishX=0, FinishY=0);background-color:red;color:white;CURSOR:Hand;FONT-FAMILY:Arial;FONT-SIZE:9pt;FONT-WEIGHT:bold' width=100% align=center valign=middle>" + myMonth[w][d] + "</td></tr></table></font>";
				}else
					calDateText[((7*w)+d)-7].innerText = myMonth[w][d];
			} else {
				calDateText[((7*w)+d)-7].innerText = " ";
			}
		}
	}
}

function fInitCal(iYear, iMonth, iDay) {

	if(iMonth<1){
		iMonth=12;
		iYear=iYear-1;
	}
	if(iMonth>12){
		iMonth=1;
		iYear++;
	}
	myMonth = fBuildCal(iYear, iMonth);
	//objPrevElement.bgColor = "";
	document.all.calSelectedDate.value = "";
	document.all.tbSelYear.value=iYear;
	document.all.tbSelMonth.value=iMonth;
	InitObj=null;
	for (w = 1; w < 7; w++) {
		for (d = 0; d < 7; d++) {
			if (!isNaN(myMonth[w][d])) {
				var nDate = new Date();
				if(myMonth[w][d]==iDay){
					InitObj = calDateText[((7*w)+d)-7];
				}
				if(myMonth[w][d]==nDate.getDate()&&iYear==nDate.getFullYear()&&iMonth==nDate.getMonth()+1){
					calDateText[((7*w)+d)-7].innerHTML = "<table cellpadding=0 cellspacing=0 border=0 width=100% ><tr><td style='filter:Alpha(Opacity=200, FinishOpacity=0, Style=2, StartX=0, StartY=0, FinishX=0, FinishY=0);background-color:red;color:white;CURSOR:Hand;FONT-FAMILY:Arial;FONT-SIZE:9pt;FONT-WEIGHT:bold' width=100% align=center valign=middle>" + myMonth[w][d] + "</td></tr></table></font>";
				}else
					calDateText[((7*w)+d)-7].innerText = myMonth[w][d];
			} else {
				calDateText[((7*w)+d)-7].innerText = " ";
			}
		}
	}
	
	while(InitObj.id != "calCell"){
		InitObj = InitObj.parentElement;
		if(InitObj==null)
			return;
	}

	fSetSelectedDay(InitObj);
}
// End -->
		</SCRIPT>
	</HEAD>
	<body onselectstart="return false" leftmargin="1" topmargin="0" marginwidth="0" marginheight="0" style="border:1px solid black">
		<script language="JavaScript" for="window" event="onload">
var dCurDate = new Date();
frmCalendarSample.tbSelMonth.value=(dCurDate.getMonth()+1);
for (i = 0; i < frmCalendarSample.tbSelYear.length; i++)
if (frmCalendarSample.tbSelYear.options[i].value == dCurDate.getFullYear())
frmCalendarSample.tbSelYear.options[i].selected = true;
		</script>
		<table border="0" cellspacing="0" cellpadding="0" id="ttable">
			<form name="frmCalendarSample" method="post" action="">
				<input type="hidden" name="calSelectedDate" value="">
				<tr style="background-color:rgb(0,84,227)" height="25">
					<td align="left" width="20"><font id="aleft" style="height:18px;color:white;width:20;padding-left:5px;font-size:18pt;font-family:webdings;margin-top:0px;cursor:default" onclick="javascript:this.style.color='black';this.style.filter='glow(color=#ffffff)';setTimeout('document.all.aleft.style.filter=tfilter;document.all.aleft.style.color=tcolor',200);fUpdateCal(frmCalendarSample.tbSelYear.value,frmCalendarSample.tbSelMonth.value-1)" onmouseover="javascript:this.style.color='#00ffff'" onMouseOut="javascript:this.style.color='white'">3</font></td>
					<td align="right">
						<span style="overflow:hidden; clip:rect(   );width:33px;color:white">
							<select name="tbSelYear" style="background-color:rgb(0,84,227);color:white;margin-left:-2px;margin-top:-2px;margin-bottom:-2px;margin-right:-2px" onchange="javascript:fUpdateCal(frmCalendarSample.tbSelYear.value, frmCalendarSample.tbSelMonth.value);tbSelYear.focus();">
								<script language="javascript">
for(i=1900;i<2100;i++)
{
document.write("<option value="+i+">"+i);
}
								</script></span>
						</select></td>
					<td width="1" style="font-size:10.5pt;color:white;cursor:default;padding-left:5px;padding-top:2px"><nobr>年<span onclick="AA.Click()" style="font-size:10.5pt;color:white;cursor:default;padding-top:0px">
<input type="text" style="border:0px;width:18;background:transparent;color:white;cursor:default;margin-left:0px" readonly name="tbSelMonth">月

<OBJECT id="AA" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11" style="display:none" VIEWASTEXT>
									<PARAM NAME="Command" VALUE="Related Topics,menu">
									<PARAM NAME="Font" VALUE="Verdana,8,gb2312,red,bold">
									<PARAM NAME="Item1" VALUE="一月;javascript:fUpdateCal(frmCalendarSample.tbSelYear.value,1)">
									<PARAM NAME="Item2" VALUE="二月;javascript:fUpdateCal(frmCalendarSample.tbSelYear.value,2)">
									<PARAM NAME="Item3" VALUE="三月;javascript:fUpdateCal(frmCalendarSample.tbSelYear.value,3)">
									<PARAM NAME="Item4" VALUE="四月;javascript:fUpdateCal(frmCalendarSample.tbSelYear.value,4)">
									<PARAM NAME="Item5" VALUE="五月;javascript:fUpdateCal(frmCalendarSample.tbSelYear.value,5)">
									<PARAM NAME="Item6" VALUE="六月;javascript:fUpdateCal(frmCalendarSample.tbSelYear.value,6)">
									<PARAM NAME="Item7" VALUE="七月;javascript:fUpdateCal(frmCalendarSample.tbSelYear.value,7)">
									<PARAM NAME="Item8" VALUE="八月;javascript:fUpdateCal(frmCalendarSample.tbSelYear.value,8)">
									<PARAM NAME="Item9" VALUE="九月;javascript:fUpdateCal(frmCalendarSample.tbSelYear.value,9)">
									<PARAM NAME="Item10" VALUE="十月;javascript:fUpdateCal(frmCalendarSample.tbSelYear.value,10)">
									<PARAM NAME="Item11" VALUE="十一月;javascript:fUpdateCal(frmCalendarSample.tbSelYear.value,11)">
									<PARAM NAME="Item12" VALUE="十二月;javascript:fUpdateCal(frmCalendarSample.tbSelYear.value,12)">
								</OBJECT>
<OBJECT id="BB" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11" style="display:none" VIEWASTEXT>
									<PARAM NAME="Command" VALUE="Related Topics,menu">
									<PARAM NAME="Font" VALUE="Verdana,8,gb2312,red,bold">
									<PARAM NAME="Item1" VALUE="转到今天;javascript:gotoToday();">
									<PARAM NAME="Item2" VALUE="关  闭;javascript:fSelectedDayClose();">
								</OBJECT>
   <!--PARAM NAME="Item3" VALUE="重  置;javascript:resdate();"-->
<script language="javascript">
function gotoToday()
{
var tdate=new Date();
fUpdateCal(tdate.getFullYear(),tdate.getMonth()+1);
document.all.dtime.value=tdate.getFullYear()+"-"+(tdate.getMonth()+1)+"-"+tdate.getDate();
thisobj.value=tdate.getFullYear()+"-"+(tdate.getMonth()+1)+"-"+tdate.getDate();
docobj.style.display='none';
setTimeout(":window.parent.calshow=0",10);
}
function resdate()
{
var tdate=new Date();
thisobj.value=dreset;
docobj.style.display='none';
setTimeout(":window.parent.calshow=0",10);
}
								</script></nobr> </span>
					</td>
					<td align="left"><font id="aright" style="height:18px;width:20;color:white;padding-right:5px;font-size:18pt;font-family:webdings;margin-top:0px;cursor:default" onmouseover="javascript:this.style.color='#00ffff'" onMouseOut="javascript:this.style.color='white'" onclick="javascript:this.style.color='black';this.style.filter='glow(color=#ffffff)';setTimeout('document.all.aright.style.filter=tfilter;document.all.aright.style.color=tcolor',200);fUpdateCal(frmCalendarSample.tbSelYear.value,++frmCalendarSample.tbSelMonth.value)">4</font></td>
				</tr>
				<tr>
					<td colspan="4">
						<script language="JavaScript">
var dCurDate = new Date();
fDrawCal(dCurDate.getFullYear(), dCurDate.getMonth()+1,30, 15, "9pt", "bold", 1);
						</script>
					</td>
				</tr>
			</form>
			<tr>
				<td width="20" style="filter:Alpha(Opacity=200, FinishOpacity=0, Style=2, StartX=0, StartY=0, FinishX=0, FinishY=0);background-color:red;width:20px"></td>
				<td colspan="2" width="70%" style="padding-left:10px;font-size:9pt;font-weight:bold">
					<script language="JavaScript">
var dCurDate = new Date();
document.write("今天:"+dCurDate.getFullYear()+"-"+(dCurDate.getMonth()+1)+"-"+dCurDate.getDate());
					</script>
				</td>
				<td align="left" width="20"><font style="position:absolute;padding-left:0px;font-size:12pt;font-weight:bold;color:red;font-family:webdings;margin-top:-12px;CURSOR:Hand" onmouseover="javascript:this.style.color='#ff00ff'" onMouseOut="javascript:this.style.color='red'" onclick="javascript:this.style.color='black';this.style.filter='glow(color=#ffffff)';setTimeout('document.all.aright.style.filter=tfilter;document.all.aright.style.color=tcolor',200);fSelectedDayClose();">r</font></td>
			</tr>
		</table>
		<input type="hidden" name="dtime" value="">
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -