Skip to content

시간 스크립트






<script language="JavaScript"><!--
var now = new Date();
document.write(months[now.getMonth()]  + now.getDate() +". " + days[now.getDay()]);
// --></script></font>
<strong>
</strong><br>
<div id="Clock" align="center" style="font-family:tahoma; font-size:10pt; color:'989898'"></div>
<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 = "Midnight";
  } else if (intHours <12) { 
     hours = " "+intHours+" "+"/"+" ";
     ap = "A.M";
  } else if (intHours == 12) {
     hours = " 12 / ";
     ap = "Noon";
  } 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 = ap+hours+minutes+seconds;

  Clock.innerHTML = timeString;

  window.setTimeout("tick();", 100);
}

window.onload = tick;

</script>





?

Board Pagination ‹ Prev 1 2 3 Next ›
/ 3
Designed by hikaru100

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소

SketchBook5,스케치북5

SketchBook5,스케치북5

SketchBook5,스케치북5

SketchBook5,스케치북5

by mari

sketchbook5, 스케치북5

sketchbook5, 스케치북5