Español
<!-- 把如下代码加入<head>区域中 --> <script LANGUAGE="javascript" TYPE="text/javascript"> <!-- function mesarr(m0, m1, m2, m3, m4, m5, m6, m7, m8, m9, m10, m11) { este[0] = m0; esto[1] = m1; esto[2] = m2; esto[3] = m3; esto[4] = m4; esto[5] = m5; esto[6] = m6; esto[7] = m7; esto[8] = m8; esto[9] = m9; esto[10] = m10; esto[11] = m11; } //más javascript de http://www.downcodes.com function calendar() { var MonthNames = "JanFebMarAprMayJunJulAugSepOctNovDec"; var hoy = nueva fecha(); var este día; var díasmes = nuevo mesarr(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31); año = hoy.getAño() + 1900; esteDía = hoy.getDate(); if (((año % 4 == 0) && (año % 100 != 0)) || (año % 400 == 0)) mesDías[1] = 29; nDías = díasmes[hoy.getMonth()]; primerDía = hoy; primerDía.setDate(1); // funciona bien para la mayoría de los sistemas testMe = firstDay.getDate(); if (testMe == 2) primerDía.setDate(0); startDay = primerDía.getDay(); document.write('<table border="1" cellpacing="0" cellpadding="1" align="CENTER" bgcolor="red"><TR><TD><table border="0" cellspace="1 " cellpadding="1" bgcolor="#ffeeee">'); document.write('<TR><th colspan="7" bgcolor="#ffffcc">'); var dayNames = new Array("星期日","星期一","星期二","星期三","星期四","星期五","星期六"); var MonthNames = new Array("1°","2°","3°","4°","5°","6°","7°","8°","9°" ,"10月","11月","12月"); var ahora = nueva fecha(); document.write("<font style=font-size:9pt;Color:#990000>" + "公元 " + now.getYear() + "年" + MonthNames[now.getMonth()] + "" + ahora. 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">四</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("</TR><TR>"); columna = 0; for (i=0; i<startDay; i++) { document.writeln("n<TD><FONT style=font-size:9pt> </FONT></TD>"); columna++; } for (i=1; i<=nDías; i++) { if (I == esteDía) { document.writeln('</TD><td align="CENTER" bgcolor="#ffefef"><FONT style= font-size:9pt;Color:rojo><B>') } else { document.writeln('</TD><TD BGCOLOR="#FFFFFF" ALIGN="CENTER"><FONT style=font-size:9pt ;familia de fuentes:Arial;peso de fuente:negrita;Color:#660033>'); } documento.writeln(i); if (I == esteDía) document.writeln("</FONT></TD>") columna++; if (columna == 7) { document.writeln("<TR>"); columna = 0; } } document.writeln('<TR><td colspan="7" align="CENTER" valign="TOP" bgcolor="#dd3333"><nombre del formulario="reloj" onSubmit="0"><estilo FONT =font-size:9pt;Color:#ffffff>当前时间 <INPUT TYPE="Text" NAME="face" size="12" ALIGN="TOP"></FONT></TD></TR>< /TABLE></TD></TR></TABLE></form>'); } // --> </script> <script LANGUAGE="javascript"> var timerID = null; var temporizadorRunning = false; función stopclock (){ if(timerRunning) clearTimeout(timerID); timerRunning = false;} function showtime () { var ahora = nueva Fecha(); var horas = ahora.getHours(); var minutos = ahora.getMinutes(); var segundos = now.getSeconds() var valor de tiempo = " " + ((horas >12) ? Horas -12 :horas) valor de tiempo += ((minutos < 10) ? ":0" : ":") + minutos valor de tiempo + = ((segundos < 10)? ":0" : ":") + valor de tiempo de segundos += (horas >= 12)? "PM": "AM" document.clock.face.value = valor de tiempo; ID del temporizador = setTimeout("showtime()",1000); timerRunning = true;} función startclock () { stopclock(); showtime();} </script> <!-- 修改<body>内容 --> <body onLoad="startclock(); timerONE=window.setTimeout" > <!-- 把如下代码加入<body>区域中--> <script IDIOMA="javascript" TYPE="texto/javascript"> <!-- calendario(); //--> </script>