11.Nas_1


시계_html clock




컨텐츠 정보

  • 14,816 조회
  • 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>
\n
[이 게시물은 관리자님에 의해 2013-11-18 21:29:50 11.H_BBS에서 이동 됨]
뷰PDF add1,add2



관련자료

댓글 2

홈피관리자님의 댓글

&lt;META name=generator content="Namo WebEditor(Trial)"&gt;<BR>&lt;SCRIPT&gt;<BR>function tick() {<BR>&nbsp; var hours, minutes, seconds, ap;<BR>&nbsp; var intHours, intMinutes, intSeconds;<BR>&nbsp; var today;<BR>&nbsp; today = new Date();<BR>&nbsp; intHours = today.getHours();<BR>&nbsp; intMinutes = today.getMinutes();<BR>&nbsp; intSeconds = today.getSeconds();<BR>&nbsp; if (intHours == 0) {<BR>&nbsp;&nbsp;&nbsp;&nbsp; hours = "12:";<BR>&nbsp;&nbsp;&nbsp;&nbsp; ap = "자정";<BR>&nbsp; } else if (intHours &lt; 12) { <BR>&nbsp;&nbsp;&nbsp;&nbsp; hours = intHours+":";<BR>&nbsp;&nbsp;&nbsp;&nbsp; ap = "A.M.";<BR>&nbsp; } else if (intHours == 12) {<BR>&nbsp;&nbsp;&nbsp;&nbsp; hours = "12:";<BR>&nbsp;&nbsp;&nbsp;&nbsp; ap = "정오";<BR>&nbsp; } else {<BR>&nbsp;&nbsp;&nbsp;&nbsp; intHours = intHours - 12<BR>&nbsp;&nbsp;&nbsp;&nbsp; hours = intHours + ":";<BR>&nbsp;&nbsp;&nbsp;&nbsp; ap = "P.M.";<BR>&nbsp; }<BR>&nbsp; if (intMinutes &lt; 10) {<BR>&nbsp;&nbsp;&nbsp;&nbsp; minutes = "0"+intMinutes+":";<BR>&nbsp; } else {<BR>&nbsp;&nbsp;&nbsp;&nbsp; minutes = intMinutes+":";<BR>&nbsp; }<BR>&nbsp; if (intSeconds &lt; 10) {<BR>&nbsp;&nbsp;&nbsp;&nbsp; seconds = "0"+intSeconds+" ";<BR>&nbsp; } else {<BR>&nbsp;&nbsp;&nbsp;&nbsp; seconds = intSeconds+" ";<BR>&nbsp; } <BR>&nbsp; timeString = hours+minutes+seconds+ap;<BR>&nbsp; Clock.innerHTML = timeString;<BR>&nbsp; window.setTimeout("tick();", 100);<BR>}<BR>window.onload = tick;<BR>&lt;/SCRIPT&gt;<BR>&lt;DIV style="font-family:Verdana; font-size:40px; color:blue;" id=Clock align=left&gt;&lt;/DIV&gt;<BR>&lt;p align="left"&gt;&lt;a href="<A href='https://11q.kr/"><blink><strong><font'>https://11q.kr/"&gt;&lt;blink&gt;&lt;strong&gt;&lt;font</A> color="blue"&gt;&lt;span style="font-size:22pt; background-color:yellow;"&gt;[ https://11q.kr 홈피 ]&lt;/span&gt;&lt;/font&gt;&lt;/strong&gt;&lt;/blink&gt;&lt;strong&gt;&lt;blink&gt;&lt;span style="font-size:22pt;"&gt; &lt;/span&gt;&lt;/blink&gt;&lt;/strong&gt;&lt;font color="blue"&gt;&lt;span style="font-size:22pt;"&gt;&lt;blink&gt;&lt;strong&gt;Shim's Web Hard Homepage&lt;/strong&gt;&lt;/blink&gt;&lt;/span&gt;&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;<BR>

홈피관리자님의 댓글

<DIV style="FONT-FAMILY: Verdana; COLOR: blue; FONT-SIZE: 40px" align=left><FONT size=3>&lt;scRIPT&gt;<BR>function tick() {<BR>&nbsp; var hours, minutes, seconds, ap;<BR>&nbsp; var intHours, intMinutes, intSeconds;<BR>&nbsp; var today;<BR>&nbsp; today = new Date();<BR>&nbsp; intHours = today.getHours();<BR>&nbsp; intMinutes = today.getMinutes();<BR>&nbsp; intSeconds = today.getSeconds();<BR>&nbsp; if (intHours == 0) {<BR>&nbsp;&nbsp;&nbsp;&nbsp; hours = "12:";<BR>&nbsp;&nbsp;&nbsp;&nbsp; ap = "자정";<BR>&nbsp; } else if (intHours &lt; 12) { <BR>&nbsp;&nbsp;&nbsp;&nbsp; hours = intHours+":";<BR>&nbsp;&nbsp;&nbsp;&nbsp; ap = "A.M.";<BR>&nbsp; } else if (intHours == 12) {<BR>&nbsp;&nbsp;&nbsp;&nbsp; hours = "12:";<BR>&nbsp;&nbsp;&nbsp;&nbsp; ap = "정오";<BR>&nbsp; } else {<BR>&nbsp;&nbsp;&nbsp;&nbsp; intHours = intHours - 12<BR>&nbsp;&nbsp;&nbsp;&nbsp; hours = intHours + ":";<BR>&nbsp;&nbsp;&nbsp;&nbsp; ap = "P.M.";<BR>&nbsp; }<BR>&nbsp; if (intMinutes &lt; 10) {<BR>&nbsp;&nbsp;&nbsp;&nbsp; minutes = "0"+intMinutes+":";<BR>&nbsp; } else {<BR>&nbsp;&nbsp;&nbsp;&nbsp; minutes = intMinutes+":";<BR>&nbsp; }<BR>&nbsp; if (intSeconds &lt; 10) {<BR>&nbsp;&nbsp;&nbsp;&nbsp; seconds = "0"+intSeconds+" ";<BR>&nbsp; } else {<BR>&nbsp;&nbsp;&nbsp;&nbsp; seconds = intSeconds+" ";<BR>&nbsp; } <BR>&nbsp; timeString = hours+minutes+seconds+ap;<BR>&nbsp; Clock.innerHTML = timeString;<BR>&nbsp; window.setTimeout("tick();", 100);<BR>}<BR>window.onload = tick;<BR>&lt;/scRIPT&gt;<BR></FONT></DIV>


전체 1,767 / 1 페이지
게시물이 없습니다.(다음페이지로 이동 하세요)
전체 1,767 / 1 페이지



♥간단_메모글♥


최근글


새댓글



PHP 안에 HTML ☞ 홈페이지 화면갱신 시간은 ♨
▶ 2024-11-25 09:12:37

오늘의 홈 현황


  • 현재 접속자♨ 354 명
  • 오늘 가입자※ 0 명
  • 어제 가입자※ 6 명
  • 주간 가입자※ 11 명
  • 오늘 방문자 1,872 명
  • 어제 방문자 4,085 명
  • 최대 방문자 13,042 명
  • 전체 방문자 4,811,786 명
  • 전체 게시물※ 8,858 개
  • 전체 댓글수※ 25,238 개
  • 전체 회원수 11,331 명

QR코드


☞ QR코드 스캔은 kakao앱 자체 QR코드

알림 0








최신글↑