한국어
나만의 페이지에 표시할 수 있는 매우 아름답고 실용적인 달력! 헤헤!
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>웹페이지 특수 효과 downcodes.com---매우 아름답고 실용적인 달력</ title> <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"> //월별 함수에 일 수를 저장하는 배열을 만듭니다. Montharr(m0, m1, m2, m3, m4, m5, m6, m7, m8, m9, m10, m11) { this[0] = m0; this[2] = m2; this[3] = m4; ; this [6] = m6; this[8] = m8; this[10] = m10; this[11] = m11; function Calendar() { var MonthNames = "JanFebMarAprMayJunJulAugSepOctNovDec"; var today = new Date(); var thisDays = new Montharr(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30 , 31); year = today.getYear() +1900; thisDay = today.getDate(); if (((연도 % 4 == 0) && (연도 % 100 != 0)) || (연도 % 400 = = 0)) MonthDays[1] = 29; nDays = MonthDays[today.getMonth()]; firstDay = today; firstDay.setDate(1); if (testMe == 2) firstDay. setDate(0) ; startDay = firstDay.getDay(); document.write("<div id='rili' style='position:absolute;width:140px;left:300px;top:100px;'>") 문서. write("< TABLE 너비='217' BORDER='0' CELLSPACING='0' CELLPADDING='2' BGCOLOR='#0080FF'>") document.write("<TR><TD><테이블 테두리=' 0' cellpacing= '1' cellpadding='2' bgcolor='Silver'>"); document.write("<TR><th colspan='7' bgcolor='#C8E3FF'>"); var dayNames = new Array("일요일","월요일","화요일","수요일","목요일","금요일","토요일") var MonthNames = new Array("1월","2월","3월"," 4월","5월","6월","7월","8월","9월","10월","11월","12월"); var now = new Date (); document.writeln("< FONT STYLE='font-size:9pt;Color:#330099'>" + "AD" + now.getYear() + "연도" + MonthNames[now.getMonth()] + " " + now.getDate() + "일" + dayNames[now.getDay()] + "</FONT>"); document.writeln("</TH></TR><TR><TH BGCOLOR= '#0080FF'><FONT STYLE= 'font-size:9pt;Color:White'>日</FONT></TH>"); document.writeln("<th bgcolor='#0080FF'><FONT STYLE ='font-size:9pt;Color :White'>一</FONT></TH>"); document.writeln("<TH BGCOLOR='#0080FF'><FONT STYLE='font-size:9pt; Color:White'>두</FONT ></TH>"); document.writeln("<TH BGCOLOR='#0080FF'><FONT STYLE='font-size:9pt;Color:White'>三</ FONT></TH>"); document.writeln("<TH BGCOLOR='#0080FF'><FONT STYLE='font-size:9pt;Color:White'>4</FONT></TH>") document.writeln("<TH BGCOLOR ='#0080FF'><FONT STYLE='font-size:9pt;Color:White'>五</FONT></TH>"); document.writeln("<TH BGCOLOR='#0080FF'><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 STYLE='font-size:9pt'> </FONT></TD>") for (i=1; i<=nDays; i++) { if (i == thisDay) { document.writeln("</TD><TD ALIGN='CENTER' BGCOLOR='#FF8040'><FONT STYLE='font-size:9pt; Color:#ffffff'><B>") } else { document.writeln("</TD><TD BGCOLOR='#FFFFFF' ALIGN='CENTER'><FONT STYLE= 'font-size:9pt;font- family:Arial;font-weight:bold;Color:#330066'>"); } document.writeln(i); if (i == thisDay) document.writeln("</ FONT></TD>") 열++ ; if (열 == 7) { document.writeln("<TR>"); 열 = 0 } } document.writeln("<TR><TD COLSPAN='7' ALIGN='CENTER' VALIGN='TOP ' BGCOLOR='#0080FF'>") document.writeln("<FORM NAME='clock' onSubmit='0'><FONT STYLE='font-size:9pt;Color: #ffffff'>") document.writeln ("현재 시간:<INPUT TYPE='Text' NAME='face' ALIGN='TOP'></FONT></FORM></TD></TR></ TABLE>") document.writeln(" </TD></TR></TABLE></div>"); } </SCRIPT> <SCRIPT LANGUAGE="JavaScript"> var 타이머ID = null; var 타이머런닝 = false ; 함수 stopclock (){ if(timerRunning )clearTimeout(timerID);timerRunning = false;} //현재 시간 표시 function showtime () { var now = new Date(); var hour = now.getHours(); = now.getSeconds() var timeValue = " " + ((시간 >12) ? 시간 -12 :시간) timeValue += ((분 < 10) ? ":0" : ": ") + 분 timeValue += ( (초 < 10) ? ":0" : ":") + 초 timeValue += (시간 >= 12) ? "PM" : "AM" document.clock.face.value = timeValue = setTimeout; ()",1000);//동적으로 시간을 표시하도록 시간 제한을 설정합니다. timingRunning = true;} function startclock () { stopclock(); showtime();} </SCRIPT> </head > <body onLoad="startclock( ); timeONE=window.setTimeout"> <script 언어="JavaScript" type="text/javascript"> <!-- Calendar(); //--> </script> < /body> </html>