<HTML>
<head>
<TITLE>Calendar</TITLE>
<STYLE type="text/css">
.TABLEHEAD {
font-size : 9pt;
font-family : Arial;
font-weight : bold;
color : white;
background-color : #66CCFF;
}
.DAYS {
font-size : 9pt;
font-weight : Bold;
font-family : Arial;
font-style : normal;
color : #000000;
background-color : FFFFCC;
}
.BEFORETODAY {
font-size : 9pt;
font-family : Arial;
font-weight : normal;
font-style : normal;
color : #000080;
background-color : #CCEEFF;
line-height: 20px;
}
.WeekEndBefore {
font-size : 9pt;
font-family : Arial;
font-weight : normal;
font-style : normal;
color : red;
background-color : #CCEEFF;
line-height: 20px;
}
.SpecialDayBefore {
font-size : 9pt;
font-family : Arial;
font-weight : normal;
font-style : normal;
color : red;
background-color : #CCEEFF;
line-height: 20px;
}
.WeekEndAfter {
font-size : 9pt;
font-family : Arial;
font-weight : normal;
font-style : normal;
color : red;
background-color : #CCCCFF;
line-height: 20px;
}
.AFTERTODAY {
font-size : 9pt;
font-family : Arial;
font-weight : normal;
font-style : normal;
color : #000080;
background-color : #CCCCFF;
line-height: 20px;
}
.SpecialDayAfter {
font-size : 9pt;
font-family : Arial;
font-weight : normal;
font-style : normal;
color : red;
background-color : #CCCCFF;
line-height: 20px;
}
.TODAY {
font-size : 9pt;
font-family : Arial;
font-weight : bold;
font-style : normal;
color : red;
background-color : #FFCC99;
line-height: 20px;
}
</STYLE>
<SCRIPT LANGUAGE="JScript">
<!--// Hide JS Code
// AUTHOR: Unknown
// MODIFIED BY: Ng Kim Boon
// MODIFIED BY/DATE: Cheng Wei/2001-Feb-17
// COMPANY: NCS Pte. Ltd
var defaultFormat = "yyyy-mm-dd";
//var defaultFormat = "mm/dd/yyyy";
var dateFormat = defaultFormat;
var days = new Array("星期日","星期一","星期二","星期三","星期四","星期五","星期六");
//var specialDay=new Array("1977/5/27","2000/9/11","2004/5/27");
//var months = new Array( "一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月" );
//var days = new Array("SUN","MON","TUE","WED","THU","FRI","SAT");
var specialDay=new Array("1977/5/27","2000/9/11","2004/5/27");
var months = new Array( "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12" );
var numDays = new Array( 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 );
var today = new Date();
var currMonth;
var beginYear = 1900;
var endYear = 2100;
function init() {
dateFormat = defaultFormat;
var m ;
m = today.getMonth() + 1;
var y;
y = today.getFullYear();
currMonth = new Month( y, m );
var strHtml = showCalendar(currMonth);
MyLabel.outerHTML="<Label ID=MyLabel>" + strHtml + "</Label>";
restorePrevFocus();
document.form1.hidFlag.value="m";
}
function restorePrevFocus(){
var flag=document.form1.hidFlag.value;
switch (flag){
case "m"://month combo
document.form1.m.focus();
break;
case "y"://year combo
document.form1.y.focus();
break;
case "p"://previous month
document.all.p.focus();
break;
case "n"://next month
document.all.n.focus();
break;
default :
document.form1.m.focus();
}
}
function prevMonth(){
var y = document.form1.y.value;
var m = document.form1.m.value;
currMonth = new Month( y,m );
var prevMonth = getRelativeMonth(currMonth , -1 );
prevMonth = new Month( prevMonth.year, prevMonth.month );
strHtml = showCalendar(prevMonth);
MyLabel.outerHTML="<Label ID=MyLabel>" + strHtml + "</Label>";
restorePrevFocus();
document.form1.hidFlag.value="p";
}
function nextMonth(){
var y = document.form1.y.value;
var m = document.form1.m.value;
currMonth = new Month( y,m );
var nextMonth = getRelativeMonth(currMonth , 1 );
nextMonth = new Month( nextMonth.year, nextMonth.month );
strHtml = showCalendar(nextMonth);
MyLabel.outerHTML="<Label ID=MyLabel>" + strHtml + "</Label>";
restorePrevFocus();
document.form1.hidFlag.value="n";
}
function changeMonth(){
var y = document.form1.y.value;
var m = document.form1.m.value;
currMonth = new Month( y,m );
strHtml = showCalendar(currMonth);
MyLabel.outerHTML="<Label ID=MyLabel>" + strHtml + "</Label>";
restorePrevFocus();
document.form1.hidFlag.value="m";
}
function changeYear(){
var y = document.form1.y.value;
var m = document.form1.m.value;
if (document.form1.y.value==document.form1.hidYear.value) return;
currMonth = new Month( y,m );
strHtml = showCalendar(currMonth);
MyLabel.outerHTML="<Label ID=MyLabel>" + strHtml + "</Label>";
restorePrevFocus();
document.form1.hidFlag.value="y";
}
function showCalendar( currMonth ) {
var prevMonth = getRelativeMonth( currMonth, -1 );
var nextMonth = getRelativeMonth( currMonth, 1 );
var strHtml="";
strHtml= strHtml + "<TABLE border=0 cellspacing=1 width=400><TR class=TABLEHEAD align=center>";
strHtml= strHtml + "<TD colspan=2 ><A class=TABLEHEAD id=p tabindex=0 style='cursor:hand;' onFocus='document.form1.hidFlag.value=\"p\";' onKeyPress='prevMonth()' onclick='prevMonth()'" + ">上个月</A></TD>";
// strHtml= strHtml + "<TD colspan=5 class=TABLEHEAD>";
//strHtml= strHtml + "<TD colspan=2 ><A class=TABLEHEAD id=p tabindex=0 style='cursor:hand;' onFocus='document.form1.hidFlag.value=\"p\";' onKeyPress='prevMonth()' onclick='prevMonth()'" + ">Previous Month</A></TD>";
strHtml= strHtml + "<TD colspan=3 class=TABLEHEAD>";
strHtml= strHtml + "<SELECT NAME=m tabindex=1 onFocus='document.form1.hidFlag.value=\"m\";' onChange='javascript:changeMonth()'>" ;
for (var i=1; i<13; i++ )
strHtml= strHtml + "<OPTION value=" + i + ((i==currMonth.month)? " selected" : "")+ ">" + months[i-1] ;
strHtml= strHtml + "</SELECT>" ;
strHtml= strHtml + "<SELECT NAME=y onFocus='document.form1.hidFlag.value=\"y\";' tabindex=2 onChange='javascript:changeYear()'>" ;
for (var tempYear=beginYear; tempYear<endYear; tempYear++ )
strHtml= strHtml + "<OPTION value=" + tempYear + ((tempYear==currMonth.year)? " selected" : "")+ ">" + tempYear ;
strHtml= strHtml + "</SELECT>" ;
strHtml= strHtml + "<INPUT type=hidden name=hidYear value=" + currMonth.year + ">" ;
strHtml= strHtml + "</TD>" ;
strHtml= strHtml + "<TD colspan=2><A tabindex=3 id=n class=TABLEHEAD style='cursor:hand;' onFocus='document.form1.hidFlag.value=\"n\";' onKeyPress='nextMonth()' onclick='nextMonth()'" + ">下个月</a></td>";
//strHtml= strHtml + "<TD colspan=2><A tabindex=3 id=n class=TABLEHEAD style='cursor:hand;' onFocus='document.form1.hidFlag.value=\"n\";' onKeyPress='nextMonth()' onclick='nextMonth()'" + ">Next Month</a></td>";
strHtml= strHtml + "</TR>";
// writes the days of the week
strHtml= strHtml + "<TR align=center bgcolor=#FFFFFF>";
for(var d=0;d<7;d++){
strHtml= strHtml + "<TD width=14% CLASS=DAYS><B> " + days[d] + " </B></TD>";
}
strHtml= strHtml + "</TR>";
var daycounter = 1;
var cls = "";
// allows month to possibly span over 6 weeks
for(var i=0; i<6; i++){
// if we have not exceeded number of days in month
if(daycounter<=currMonth.length) {
strHtml= strHtml +"<TR align=center>"
// display each day of the week
for(var j=0;j<7;j++){
// First choose different style for different period.
// Not yet the first day of the month, or
// it has exceeded the last day in the month.
if( (i==0 && j<currMonth.firstDay) || daycounter>currMonth.length) {
cls = "";
// Current date
} else if(daycounter==today.getDate() && currMonth.month==today.getMonth()+1 && currMonth.year==today.getFullYear()) {
cls = " class=TODAY";
// Future date
} else if((daycounter>today.getDate() && currMonth.month==today.getMonth()+1 && currMonth.year==today.getFullYear()) || (currMonth.month>today.getMonth()+1 && currMo
QQ1978519681计算机程序
- 粉丝: 1727
- 资源: 303
最新资源
- 神经网络 使用手写字数据集 实现分割任务 CNN
- 基于maxwell的4极6槽 内转子 11000rpm 输出转矩 156mNm 效率85% 180W 外径 48mm 内径27 轴向长度30mm 直流母线36V 永磁同步电机(永磁直流无刷)模型
- FPGA开发:SDRAM驱动代码,使用串口向sdram写数据,数据环回后被SDRAM送回到串口进行输出,中间使用FIFO进行跨时钟域处理,所用开发板DE2-115,SDRAM型号IS42S16320D
- ZTE C600&C620&C650命令参考
- python-workspace.zip.006
- FX5U FX40SSC 程序 FX5U FX 40SSC运动控制模块程序块 自己整合的针对FX 40SSC模块的功能块,支持点动故障码 状态码 相对定位 绝对定位 直接1指定轴号就可以
- 汽车二、三自由度模型 汽车二、三自由度模型 本人用了三种不同方法搭的汽车线性二自由度simulink模型,文档里包含有具体的车辆数值 适合初学者学习simulink使用(ps.模型输入为前轮转角,输出
- KUKA机器人码垛程序备份
- dbstudio-3.8.5.102.win64 神通数据库连接工具
- 开源TVBox影视盒子 小苹果影视盒子V1.5.7 2025新版
- 基于国产M0核MCU平台,全开源双电阻采样FOC高压 风机量产程序,包含龙博格电机观测器,SVPWM,顺逆风启动,五段式与七段式调制等源码,完全可以移植到别的MCU平台 适合电机算法研究
- 交替迭代法 matlab 无功优化 通过含固态变压器的无功优化算法,形成交替迭代潮流计算,最终计算出符合预期的电压曲线,程序方法包括包括牛拉法 前推回代等,参考性强
- 综合能源耦合微网优化程序matlab 程序基于冷热电联供综合能源耦合模型,采用cchp,并且含有压缩空气储能,采用粒子群优化求解
- DataGrip 2021.3 数据库连接工具
- 考虑碳交易的微网优化模型matlab
- FreeRTOS 是一款开源的、可抢占式的实时操作系统.docx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈