Indonesia
<!-- 完整的HTML代码如下--> <HTML> <TITLE>建站学院特效代码->>24/12 转换时钟</TITLE> <HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Mulai function showMilitaryTime() { if (document.form.showMilitary[0].checked) { kembali benar; } kembali salah; } fungsi showTheHours(theHour) { if (showMilitaryTime() || (theHour > 0 && theHour < 13)) { return (theHour); } if (Jam == 0) { kembali (12); } kembali (Jam-12); } fungsi showZeroFilled(inValue) { if (inValue > 9) { return "" + inValue; } kembalikan "0" + nilai; } fungsi showAmPm() { if (showMilitaryTime()) { return (""); } if (sekarang.getHours() < 12) { return (" pagi"); } kembali (" sore"); } fungsi showTheTime() { sekarang = Tanggal baru document.form.showTime.value = showTheHours(now.getHours()) + ":" + showZeroFilled(now.getMinutes()) + ":" + showZeroFilled(now.getSeconds( )) + showAmPm() setTimeout("showTheTime()",1000) } // End --> </script> <BODY onLoad="showTheTime()"> <!-- LANGKAH KETIGA: Tambahkan kode terakhir pada BODY dokumen HTML Anda --> <BODY> <center><form name=form> <input type=text name=showTime size=11><p> <input type=radio name=showMilitary dicentang>24小时<br> <input type=radio name=showMilitary>12小时<br> </form></center>