주간 베스트 월간 베스트 3개월 베스트 베스트 게시물
꽃배달 한국, 중국 전지역배송

폼 안에 시계를 넣어보잣 ^^

광수 | 2001.10.16 09:48:22 댓글: 0 조회: 601 추천: 5
분류컴관련 강좌·팁 https://life.moyiza.kr/itstudy/1746862
<head> 와 </head> 사이에 아래 소스를 삽입하세요.
<script language="javascript">
<!--
var timerID = null;
var timerRunning = false;

function stopclock (){
if(timerRunning)
clearTimeout(timerID);
timerRunning = false;
}

function showtime () {
var now = new Date();
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds()
var timeValue = "" + ((hours >12) ? hours -12 :hours)
timeValue += ((minutes < 10) ? ":0" : ":") + minutes
timeValue += ((seconds < 10) ? ":0" : ":") + seconds
timeValue += (hours >= 12) ? " P.M" : " A.M"
document.clock.face.value = timeValue;
timerID = setTimeout("showtime()",1000);
timerRunning = true;
}

function startclock () {
stopclock();
showtime();
//-->
</script>
<body onload="startclock()">
<form name="clock">
<input type="text" name="face" size="10">
</form>
폼 태그는 바디속 넣고 싶은 위치에 넣어주시면 됨니다.
추천 (5) 선물 (0명)
IP: ♡.156.♡.178
3,006 개의 글이 있습니다.
제목 글쓴이 날짜 조회
관리자
2003-09-20
11800
관리자
2003-09-20
11348
관리자
2003-09-20
20450
지구인
2010-08-27
19286
지구인
2009-09-07
13590
SOLIDH
2010-01-29
15558
엔죠라이프
2004-10-07
16661
광수
2001-10-16
422
광수
2001-10-16
522
광수
2001-10-16
366
광수
2001-10-16
483
광수
2001-10-16
416
광수
2001-10-16
541
광수
2001-10-16
468
광수
2001-10-16
601
광수
2001-10-16
372
광수
2001-10-16
439
광수
2001-10-16
390
광수
2001-10-16
492
광수
2001-10-16
354
광수
2001-10-16
526
광수
2001-10-16
404
광수
2001-10-16
570
광수
2001-10-16
390
광수
2001-10-16
623
광수
2001-10-16
344
광수
2001-10-16
819
광수
2001-10-16
398
모이자 모바일