&

홈페이지에 머문시간 상태표시창에 나타내기

 
· 2003-07-31 (목) 05:32:22 · 6375 · 1
<head> </head> 사이에 아래 소스 입력

<script LANGUAGE="JavaScript">
<!--
/*
JavaScript coded in full by Craig McKinnon
http://www.WarpLink.com/~sandym
[email protected]
*/

var min_inc = 0, sec_inc = -1;

function browsing_time()
{
if (sec_inc == 59) min_inc++;
sec_inc = (sec_inc + 1) % 60; // reset sec_inc to 0 after 59 seconds

// Display "minutes" or "minute" (<-- for 1 minute and second)
// and proper 0's

if (min_inc == 1)
var min_no = min_inc + ' minute';
else var min_no = min_inc + ' minutes';

if (sec_inc >= 10)
var sec_no = sec_inc;
else var sec_no = '0' + sec_inc;

var sec_txt = ' seconds.';
if (sec_inc == 1)
sec_txt = ' second.';

var elapsed = '이곳에 죽치고 있은 시간은 ' + min_no + ' '+ sec_no + sec_txt;

defaultStatus = elapsed;

setTimeout("browsing_time()", 1000);
}
// -->
</script>

그리고
<body onload="browsing_time()">요렇게 바디 라인에 적용하면 끝

[이 게시물은 관리자님에 의해 2003-08-11 14:21:20 공부할까요?(으)로 부터 이동됨]
|

댓글 1개

^^
댓글을 작성하시려면 로그인이 필요합니다.

자유게시판

203,319건
+
제목 글쓴이 날짜 조회
03-07-29 조회 6,188
03-07-26 조회 6,036
03-07-24 조회 6,236
03-07-24 조회 6,493
03-07-05 조회 1.2만
03-07-05 조회 7,007
03-07-12 조회 6,558
03-02-24 조회 7,939
03-02-24 조회 8,446
03-02-24 조회 8,941
배배부른꿀꿀이
03-08-11 조회 5,950
03-08-05 조회 6,370
&&nbsp;
03-08-02 조회 6,466
03-08-01 조회 8,272
&&nbsp;&nbsp;
03-07-31 조회 6,011
&&nbsp;
03-07-31 조회 5,854
&&nbsp;
03-07-31 조회 5,870
&&nbsp;
03-07-31 조회 6,376
&&nbsp;
03-07-31 조회 5,511
&&nbsp;
03-07-31 조회 5,614