웹마스터 팁
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
타이머
2008.11.29 20:16
타이머 소스입니다.
<html>
<head>
<title>타이머</title>
<script language="JavaScript">
<!--
var gap = 1000; //남은초 기본값
function msg_time()
{
m = Math.floor(gap/60)+"분 "+(gap%60)+"초";
// window.status = m;
document.all.x.innerHTML="<font color='red'>" + m + "</font> 남았습니다.";
gap--;
if(gap<0)
{
clearInterval(tid);
}
}
//-->
</script>
</head>
<body onLoad="tid=setInterval('msg_time()',1000);">
<center>
<div id="layer1" style="width:182px; height:17px; position:absolute; left:683px; top:164px; z-index:1;">
<p><div id="x"></div></p>
</div>
</center>
</body>
</html>
<html>
<head>
<title>타이머</title>
<script language="JavaScript">
<!--
var gap = 1000; //남은초 기본값
function msg_time()
{
m = Math.floor(gap/60)+"분 "+(gap%60)+"초";
// window.status = m;
document.all.x.innerHTML="<font color='red'>" + m + "</font> 남았습니다.";
gap--;
if(gap<0)
{
clearInterval(tid);
}
}
//-->
</script>
</head>
<body onLoad="tid=setInterval('msg_time()',1000);">
<center>
<div id="layer1" style="width:182px; height:17px; position:absolute; left:683px; top:164px; z-index:1;">
<p><div id="x"></div></p>
</div>
</center>
</body>
</html>
댓글 0
제목 | 글쓴이 | 날짜 |
---|---|---|
키보드 사용 방지 소스 [4] | 푸름[poorum] | 2007.06.13 |
폼방식으로 데이터를 넘길 때... [5] | 제로보드유저 | 2007.08.23 |
CSS 사용시 익스플로러 버그 해결하기. [3] | NineTail | 2007.08.28 |
표안의 레이어 고정좌표 풀기 [1] | 알랑콩 | 2007.09.14 |
page에 웹페이지의 보드(게시판 ) 삽입 [2] | parkys | 2007.10.24 |
[절대초보용] css 클래스 기초 [8] | NHN국화 | 2007.11.03 |
css 간단한 박스 레이아웃입니다. [8] | stryper | 2007.11.21 |
드림위버에서 나모처럼 셀관리. [4] | 샤킨 | 2007.12.05 |
팁이라고 할 수 없는 [이미지안투명박스] [2] | 엔시™ | 2007.12.23 |
그라데이션 태그 소스 [1] | wwolf | 2008.09.21 |
아이프레임 스크롤바를 투명하게 | wwolf | 2008.09.21 |
SOUND 다루기 - 1 | ITBANK.kr | 2008.10.01 |
레이어 속에 또다른 레이어 넣기 | ITBANK.kr | 2008.10.01 |
CSS 와 DIV 태그로 레이어 나타내기 | ITBANK.kr | 2008.10.01 |
레이어의 개념 및 기초 지식 [1] | ITBANK.kr | 2008.10.01 |
마키(marquee) 태그 사용법 | ITBANK.kr | 2008.10.01 |
펌방지(펌방제해제우회) [13] | *이종민* | 2008.11.29 |
F5 방지 | *이종민* | 2008.11.29 |
즐겨찾기 추가 소스 | *이종민* | 2008.11.29 |
타이머 | *이종민* | 2008.11.29 |