code into the HEAD of your HTML document --> 1 : <! - 1 단계 : 귀하의 HTML 문서의 붙여넣기를이 코드에 머리 ->
2 :
3 : <HEAD>
> 4 : <SCRIPT LANGUAGE= "JavaScript">
5 : <! - 기존 : 마시모 Giari (motore@iol.it) ->
6 : <! >
7 : <! >
8 : <! - 시작
clocktext, timeday; 9 : var에 clocktext, timeday;
pagetitle = document.title; 10 : var에 pageTitle = document.title;
scroll() { 11 : 함수 스크롤 () ( Date(); 12 : 오늘 = 새로운 날짜 ();
13 : 초 = today.getSeconds ();
14 : 시간 = today.getHours ();
15 : 분 = today.getMinutes ();
16 : / / 12 일 (pres@manninc.com) 만 시간 클럭 수정에 의해 마이클
(hr < 12) { timeday = " AM" ; } 17 :면 (시간 <12) (timeday = "오전";) { timeday = " PM" ; } 18 : 다른 (timeday = "오후";) (hr > 12) hr = hr - 12; 19 :면 (시간> 12) = 시간 시간 - 12;
(hr <= 9) hr = "0" + hr; 20 :면 (시간 <= 9) 시간 = "0"+ 시간;
(min <= 9) min = "0" + min; 21 :면 (분 <= 9) 분 = "0"+ 분
(sec <= 9) sec = "0" + sec; 22 :면 (초 <= 9) 초 = "0"+ 초;
clocktext = " - " + hr + ":" + min + ":" + sec + timeday; 23 : var에 clocktext = "-"+ 시간 +를 ":"+ 분 +를 ":"+ 초 + timeday;
, 1000); 24 : clocktimer = setTimeout ( "스크롤 ()", 1000);
25 : document.title = pageTitle + clocktext;
26 :)
(document.all) scroll(); 27 :면 (document.all)) 스크롤 (;
28 : / / 끝 ->
29 : </ 스크립트>