한국어
<!-- 把如下代码加入<head>区域中 --> <script LANGUAGE="javascript" TYPE="text/javascript"> <!-- 함수 Montharr(m0, m1, m2, m3, m4, m5, m6, m7, m8, m9, m10, m11) { this[0] = m0; this[1] = m1; this[2] = m2; this[3] = m3; this[4] = m4; this[5] = m5; this[6] = m6; this[7] = m7; this[8] = m8; this[9] = m9; this[10] = m10; this[11] = m11; } //http://www.downcodes.com의 추가 자바스크립트 function Calendar() { var MonthNames = "JanFebMarAprMayJunJulAugSepOctNovDec"; var today = new Date(); var thisDay; var MonthDays = 새 월arr(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31); 연도 = today.getYear() + 1900; thisDay = today.getDate(); if (((연도 % 4 == 0) && (연도 % 100 != 0)) || (연도 % 400 == 0)) MonthDays[1] = 29; nDays = 월일[today.getMonth()]; firstDay = 오늘; firstDay.setDate(1); // 대부분의 시스템에서 잘 작동합니다. testMe = firstDay.getDate(); if (testMe == 2) firstDay.setDate(0); startDay = firstDay.getDay(); document.write('<table border="1" 세포 간격="0" cellpadding="1" align="CENTER" bgcolor="red"><TR><TD><table border="0" 세포 간격="1 " cellpadding="1" bgcolor="#ffeeee">'); document.write('<TR><th colspan="7" bgcolor="#ffffcc">'); var dayNames = new Array("星期日","star期一","star期two","star期三","star期4","star期五","star期六"); var MonthNames = new Array("1월","2월","3월","4월","5월","6월","7월","8월","9월" ,"10월","11월","12월"); var now = new Date(); document.write("<font style=font-size:9pt;Color:#990000>" + "공원 " + now.getYear() + "年" + MonthNames[now.getMonth()] + "" + now. getDate() + "일 " + dayNames[now.getDay()] + "</FONT>"); document.writeln('</TH></TR><TR><TH BGCOLOR="red"><font style="font-size:9pt;Color:White">일</FONT></TH>' ); document.writeln('<th bgcolor="#ff6699"><font style="font-size:9pt;Color:White">一</FONT></TH>'); document.writeln('<TH BGCOLOR="#ff6699"><font style="font-size:9pt;Color:White">두</FONT></TH>'); document.writeln('<TH BGCOLOR="#ff6699"><font style="font-size:9pt;Color:White">三</FONT></TH>'); document.writeln('<TH BGCOLOR="#ff6699"><font style="font-size:9pt;Color:White">4</FONT></TH>'); document.writeln('<TH BGCOLOR="#ff6699"><font style="font-size:9pt;Color:White">5</FONT></TH>'); document.writeln('<TH BGCOLOR="#ff6699"><font style="font-size:9pt;Color:White">六</FONT></TH>'); document.writeln("</TR><TR>"); 열 = 0; for (i=0; i<startDay; i++) { document.writeln("n<TD><FONT 스타일=글꼴-크기:9pt> </FONT></TD>"); 컬럼++; } for (i=1; i<=nDays; i++) { if (I == thisDay) { document.writeln('</TD><td align="CENTER" bgcolor="#ffefef"><FONT style= 글꼴 크기:9pt;색상:빨간색><B>') } else { document.writeln('</TD><TD BGCOLOR="#FFFFFF" ALIGN="CENTER"><FONT style=font-size:9pt ;글꼴 계열:Arial;글꼴 무게:굵게;색상:#660033>'); } document.writeln(i); if (I == thisDay) document.writeln("</FONT></TD>") 컬럼++; if (column == 7) { document.writeln("<TR>"); 열 = 0; } } document.writeln('<TR><td colspan="7" align="CENTER" valign="TOP" bgcolor="#dd3333"><form name="clock" onSubmit="0"><FONT 스타일 =font-size:9pt;색상:#ffffff>当前时间 <INPUT TYPE="Text" NAME="face" size="12" ALIGN="TOP"></FONT></TD></TR>< /TABLE></TD></TR></TABLE></form>'); } // --> </script> <script LANGUAGE="javascript"> var 타이머ID = null; var 타이머실행 = false; function stopclock (){ if(timerRunning)clearTimeout(timerID); timerRunning = false;} function showtime () { var now = new Date(); var 시간 = now.getHours(); var 분 = now.getMinutes(); var 초 = now.getSeconds() var timevalue = " " + ((시간 >12) ? 시간 -12 :hours) timevalue += ((분 < 10) ? ":0" : ":") + 분 timevalue + = ((초 < 10) ? ":0" : ":") + 초 시간값 += (시간 >= 12) ? " PM" : " AM" document.clock.face.value = timevalue; 타이머ID = setTimeout("showtime()",1000); timerRunning = true;} function startclock() { stopclock(); showtime();} </script> <!-- 修改<body>内容 --> <body onLoad="startclock();timerONE=window.setTimeout" > <!-- 把如下代码加入<body>区域中--> <script LANGUAGE="javascript" TYPE="text/javascript"> <!-- Calendar(); //--> </script>