한국어
<!--要完成此效果把如下代码加入到<body>区域中--> <script> function syeClock() { if (!document.layers && !document.all) return; timePortion = 새 배열; maxLength = 새 배열; var runTime = 새로운 날짜(); timePortion[0] = runTime.getHours(); timePortion[1] = runTime.getMinutes(); timePortion[2] = runTime.getSeconds(); 최대길이[0] = 5; 최대길이[1] = 6; 최대길이[2] = 6; var dec값 = 0; var decMod = 0; var 온도 = ""; var hourBackground = "#7B7BB5"; var MinuteBackground = "#4D5487"; var secondBackground = "#424A63"; var colonBackground = "#000000"; var textColor = "#FFFFFF"; for (var curPor = 0; curPor <= 2; curPor++) { decValue = timePortion[curPor]; timePortion[curPor] = ""; while (decValue != 0) { decMod = decValue % 2; decValue = Math.floor(decValue / 2); timePortion[curPor] = decMod + timePortion[curPor]; } if (timePortion[curPor].length < maxLength[curPor]) { for (var i = 1; i <= maxLength[curPor] - timePortion[curPor].length; i++) { temp += "0"; } } timePortion[curPor] = 온도 + timePortion[curPor]; 온도 = ""; } 이동 시간 = '<table border="0" cellpadding="0" cellpadding="0"><tr><td bgcolor='+ hourBackground +'><font color='+ textColor +'>' + timePortion[0 ] + '</font></td><td bgcolor='+ colonBackground +'>:</td><td bgcolor='+ 분배경 +'><font color='+ textColor +'>' + timePortion[ 1] + '</font></td><td bgcolor='+ colonBackground +'>:</td><td bgcolor='+ secondBackground +'><font color='+ textColor +'>' + timePortion [2] + '</font></td></tr></table>'; if (document.layers) { document.layers.clock.document.write(movingtime); document.layers.clock.document.close(); } else if (document.all) { clock.innerHTML = 이동시간; } setTimeout("syeClock()", 1000) } window.onload = syeClock; </script> <p align="center"> 두 장치 제조<br> <span id="clock" style="position:relative;"></span> </p>