시계_html clock
컨텐츠 정보
- 14,441 조회
- 2 댓글
- 0 추천
-
목록
본문
\r\n\r\n\r\n
<SCRIPT>
function tick() {
var hours, minutes, seconds, ap;
var intHours, intMinutes, intSeconds;
var today;
today = new Date();
intHours = today.getHours();
intMinutes = today.getMinutes();
intSeconds = today.getSeconds();
if (intHours == 0) {
hours = "12:";
ap = "자정";
} else if (intHours < 12) {
hours = intHours+":";
ap = "A.M.";
} else if (intHours == 12) {
hours = "12:";
ap = "정오";
} else {
intHours = intHours - 12
hours = intHours + ":";
ap = "P.M.";
}
if (intMinutes < 10) {
minutes = "0"+intMinutes+":";
} else {
minutes = intMinutes+":";
}
if (intSeconds < 10) {
seconds = "0"+intSeconds+" ";
} else {
seconds = intSeconds+" ";
}
timeString = hours+minutes+seconds+ap;
Clock.innerHTML = timeString;
window.setTimeout("tick();", 100);
}
window.onload = tick;
</SCRIPT>
\nfunction tick() {
var hours, minutes, seconds, ap;
var intHours, intMinutes, intSeconds;
var today;
today = new Date();
intHours = today.getHours();
intMinutes = today.getMinutes();
intSeconds = today.getSeconds();
if (intHours == 0) {
hours = "12:";
ap = "자정";
} else if (intHours < 12) {
hours = intHours+":";
ap = "A.M.";
} else if (intHours == 12) {
hours = "12:";
ap = "정오";
} else {
intHours = intHours - 12
hours = intHours + ":";
ap = "P.M.";
}
if (intMinutes < 10) {
minutes = "0"+intMinutes+":";
} else {
minutes = intMinutes+":";
}
if (intSeconds < 10) {
seconds = "0"+intSeconds+" ";
} else {
seconds = intSeconds+" ";
}
timeString = hours+minutes+seconds+ap;
Clock.innerHTML = timeString;
window.setTimeout("tick();", 100);
}
window.onload = tick;
</SCRIPT>
[이 게시물은 관리자님에 의해 2013-11-18 21:29:50 11.H_BBS에서 이동 됨]
관련자료
댓글 2
홈피관리자님의 댓글
<META name=generator content="Namo WebEditor(Trial)"><BR><SCRIPT><BR>function tick() {<BR> var hours, minutes, seconds, ap;<BR> var intHours, intMinutes, intSeconds;<BR> var today;<BR> today = new Date();<BR> intHours = today.getHours();<BR> intMinutes = today.getMinutes();<BR> intSeconds = today.getSeconds();<BR> if (intHours == 0) {<BR> hours = "12:";<BR> ap = "자정";<BR> } else if (intHours < 12) { <BR> hours = intHours+":";<BR> ap = "A.M.";<BR> } else if (intHours == 12) {<BR> hours = "12:";<BR> ap = "정오";<BR> } else {<BR> intHours = intHours - 12<BR> hours = intHours + ":";<BR> ap = "P.M.";<BR> }<BR> if (intMinutes < 10) {<BR> minutes = "0"+intMinutes+":";<BR> } else {<BR> minutes = intMinutes+":";<BR> }<BR> if (intSeconds < 10) {<BR> seconds = "0"+intSeconds+" ";<BR> } else {<BR> seconds = intSeconds+" ";<BR> } <BR> timeString = hours+minutes+seconds+ap;<BR> Clock.innerHTML = timeString;<BR> window.setTimeout("tick();", 100);<BR>}<BR>window.onload = tick;<BR></SCRIPT><BR><DIV style="font-family:Verdana; font-size:40px; color:blue;" id=Clock align=left></DIV><BR><p align="left"><a href="<A href='https://11q.kr/"><blink><strong><font'>https://11q.kr/"><blink><strong><font</A> color="blue"><span style="font-size:22pt; background-color:yellow;">[ https://11q.kr 홈피 ]</span></font></strong></blink><strong><blink><span style="font-size:22pt;"> </span></blink></strong><font color="blue"><span style="font-size:22pt;"><blink><strong>Shim's Web Hard Homepage</strong></blink></span></font></a></p><BR>
홈피관리자님의 댓글
<DIV style="FONT-FAMILY: Verdana; COLOR: blue; FONT-SIZE: 40px" align=left><FONT size=3><scRIPT><BR>function tick() {<BR> var hours, minutes, seconds, ap;<BR> var intHours, intMinutes, intSeconds;<BR> var today;<BR> today = new Date();<BR> intHours = today.getHours();<BR> intMinutes = today.getMinutes();<BR> intSeconds = today.getSeconds();<BR> if (intHours == 0) {<BR> hours = "12:";<BR> ap = "자정";<BR> } else if (intHours < 12) { <BR> hours = intHours+":";<BR> ap = "A.M.";<BR> } else if (intHours == 12) {<BR> hours = "12:";<BR> ap = "정오";<BR> } else {<BR> intHours = intHours - 12<BR> hours = intHours + ":";<BR> ap = "P.M.";<BR> }<BR> if (intMinutes < 10) {<BR> minutes = "0"+intMinutes+":";<BR> } else {<BR> minutes = intMinutes+":";<BR> }<BR> if (intSeconds < 10) {<BR> seconds = "0"+intSeconds+" ";<BR> } else {<BR> seconds = intSeconds+" ";<BR> } <BR> timeString = hours+minutes+seconds+ap;<BR> Clock.innerHTML = timeString;<BR> window.setTimeout("tick();", 100);<BR>}<BR>window.onload = tick;<BR></scRIPT><BR></FONT></DIV>