웹마스터 팁
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
지금까지 살아온 날 계산해 주는 스크립트
2001.07.20 15:09
<HTML>
<HEAD>
<title>Age-Counter</title>
<style TYPE="text/css">
<!--
BODY {font-size:9pt}
Table {font-size:12pt}
A:link {text-decoration:none;}
A:visited {text-decoration:none;color:blue;}
A:hover {text-decoration:none;color:red;}
STRONG {font-size:25pt}
FONT {font-size:9pt}
input {font-size:9pt}
-->
</style>
</head>
<BODY>
<SCRIPT LANGUAGE="JAVASCRIPT">
<!-- hide this script tag's contents from old browsers
function lifetimer(){
today = new Date()
BirthDay = new Date(document.live.age.value)
timeold = (today.getTime() - BirthDay.getTime());
sectimeold = timeold / 1000;
secondsold = Math.floor(sectimeold);
msPerDay = 24 * 60 * 60 * 1000 ;
timeold = (today.getTime() - BirthDay.getTime());
e_daysold = timeold / msPerDay;
daysold = Math.floor(e_daysold);
e_hrsold = (e_daysold - daysold)*24;
hrsold = Math.floor(e_hrsold);
minsold = Math.floor((e_hrsold - hrsold)*60);
document.live.time1.value = daysold
document.live.time2.value = hrsold
document.live.time3.value = minsold
window.status = "당신이 태어나서 " + secondsold + "초 지나고 있네요!";
timerID = setTimeout("lifetimer()",1000)
}
// -- done hiding from old browsers -->
</script>
<font color=red>당신이 태어나서 지금껏 살아온 시간들을 알아보는 스크립트입니다!</font><br><br><form name="live">
당신의 생일을 아래에 다음처럼 입력하세요!!<br>
ex) 1969년 6월 15일생 ▶ <font color=red>june 15,1969</font> 또는 <font color=red>jun 15,1969</font><br>
<INPUT TYPE="text" NAME="age" VALUE="" SIZE=15><br>
<INPUT TYPE="button" NAME="start" VALUE="계산하기" ONCLICK="lifetimer(this.form)">
<INPUT TYPE="reset" NAME="resetb" VALUE="지우기"><br>
당신이 태어나서<INPUT TYPE="text" NAME="time1" VALUE="" size=5>일<INPUT TYPE="text" NAME="time2" VALUE="" size=2>시간<INPUT TYPE="text" NAME="time3" VALUE="" size=2>분이 지났습니다.</form>
<font color=green>아래 상태 표시줄을 보면 당신이 지금까지 살아온 초까지도 알 수가 있습니다.</font><br><br>
<font color=blue>영어가 딸리는 분들을 위한 자그마한 배려!!! ^^</font><br>
1월:<font color=red>Jan</font>uary<BR>
2월:<font color=red>Feb</font>ruary<BR>
3월:<font color=red>Mar</font>ch<BR>
4월:<font color=red>Apr</font>il<BR>
5월:<font color=red>May</font><BR>
6월:<font color=red>Jun</font>e<BR>
7월:<font color=red>Jul</font>y<BR>
8월:<font color=red>Aug</font>ust<BR>
9월:<font color=red>Sep</font>tember<BR>
10월:<font color=red>Oct</font>ober<BR>
11월:<font color=red>Nov</font>ember<BR>
12월:<font color=red>Dec</font>ember<BR>
</BODY>
</HTML>
<HEAD>
<title>Age-Counter</title>
<style TYPE="text/css">
<!--
BODY {font-size:9pt}
Table {font-size:12pt}
A:link {text-decoration:none;}
A:visited {text-decoration:none;color:blue;}
A:hover {text-decoration:none;color:red;}
STRONG {font-size:25pt}
FONT {font-size:9pt}
input {font-size:9pt}
-->
</style>
</head>
<BODY>
<SCRIPT LANGUAGE="JAVASCRIPT">
<!-- hide this script tag's contents from old browsers
function lifetimer(){
today = new Date()
BirthDay = new Date(document.live.age.value)
timeold = (today.getTime() - BirthDay.getTime());
sectimeold = timeold / 1000;
secondsold = Math.floor(sectimeold);
msPerDay = 24 * 60 * 60 * 1000 ;
timeold = (today.getTime() - BirthDay.getTime());
e_daysold = timeold / msPerDay;
daysold = Math.floor(e_daysold);
e_hrsold = (e_daysold - daysold)*24;
hrsold = Math.floor(e_hrsold);
minsold = Math.floor((e_hrsold - hrsold)*60);
document.live.time1.value = daysold
document.live.time2.value = hrsold
document.live.time3.value = minsold
window.status = "당신이 태어나서 " + secondsold + "초 지나고 있네요!";
timerID = setTimeout("lifetimer()",1000)
}
// -- done hiding from old browsers -->
</script>
<font color=red>당신이 태어나서 지금껏 살아온 시간들을 알아보는 스크립트입니다!</font><br><br><form name="live">
당신의 생일을 아래에 다음처럼 입력하세요!!<br>
ex) 1969년 6월 15일생 ▶ <font color=red>june 15,1969</font> 또는 <font color=red>jun 15,1969</font><br>
<INPUT TYPE="text" NAME="age" VALUE="" SIZE=15><br>
<INPUT TYPE="button" NAME="start" VALUE="계산하기" ONCLICK="lifetimer(this.form)">
<INPUT TYPE="reset" NAME="resetb" VALUE="지우기"><br>
당신이 태어나서<INPUT TYPE="text" NAME="time1" VALUE="" size=5>일<INPUT TYPE="text" NAME="time2" VALUE="" size=2>시간<INPUT TYPE="text" NAME="time3" VALUE="" size=2>분이 지났습니다.</form>
<font color=green>아래 상태 표시줄을 보면 당신이 지금까지 살아온 초까지도 알 수가 있습니다.</font><br><br>
<font color=blue>영어가 딸리는 분들을 위한 자그마한 배려!!! ^^</font><br>
1월:<font color=red>Jan</font>uary<BR>
2월:<font color=red>Feb</font>ruary<BR>
3월:<font color=red>Mar</font>ch<BR>
4월:<font color=red>Apr</font>il<BR>
5월:<font color=red>May</font><BR>
6월:<font color=red>Jun</font>e<BR>
7월:<font color=red>Jul</font>y<BR>
8월:<font color=red>Aug</font>ust<BR>
9월:<font color=red>Sep</font>tember<BR>
10월:<font color=red>Oct</font>ober<BR>
11월:<font color=red>Nov</font>ember<BR>
12월:<font color=red>Dec</font>ember<BR>
</BODY>
</HTML>
댓글 6
-
skyel
2001.07.20 15:09
재밌잖아요. ^^ -
블루[Blue]
2001.07.22 04:16
재미있네요 ^^* -
uyaggo
2001.07.24 13:29
증말 잼나네~~~ -
정이
2001.07.27 13:09
잼있어서 배꼽이 발라당 뒤집어지겠네욤.. -
::다니::
2001.07.27 18:22
홈에다 해놔야쥐~~~~~ ^-^ -
신비
2001.08.01 17:28
으앙 진짜 잼이땅+_+
제목 | 글쓴이 | 날짜 |
---|---|---|
cron을 이용해 윈앰프 방송정보를 빠르게 분석. [9] | Romeo | 2002.01.15 |
파일시스템에서 비밀번호 생성/수정/인증 [7] | 두기두바 | 2002.01.10 |
파일시스템(배열)에서의 검색기능 [5] | 두기두바 | 2002.01.09 |
[추천 팁] 디망쉬식 스킨 시스템 [4] | 디망쉬 | 2001.12.11 |
[추천 소스] phpMyAdmin 다중사용자용... [5] | WOWpc | 2001.11.29 |
MySQL에서 한글 정렬 문제 [2] | 손정호 | 2001.11.21 |
phpMyAdmin에서 dump 안 되시는 분들 보세요 [5] | 똥가리 | 2001.11.18 |
컴에 phpMyAdmin 깔고 원격 Mysql 관리.(이것도 팁이 되려나?) [1] | 최형삼 | 2001.11.17 |
[추천 소스] 특정일로부터 몇일 지났나 또는 몇일 남았나 알아보는 소스 ㅡ.ㅡ; [1] | 타스케 | 2001.11.15 |
게시판 만들 때 스팸메일을 막을 수 있는 방법중 한개. [11] | WOWpc | 2001.11.09 |
알렉사 순위 가져오는 스크립트;; [30] | zero | 2001.11.06 |
[GD] 이미지 회전 함수 공개합니다. [7] | 노경민 | 2001.11.05 |
자동차세 연체가산금 계산기 | secret | 2001.04.02 |
Imagechar() 함수에서 한문자씩쓰는거 여러글짜이어쓰는함수 | 김승태 | 2001.10.20 |
남은 계정 용량 확인하는 PHP [17] | 겜올드™ | 2001.09.09 |
php 로 swf 맹글기 [3] | 리산 | 2001.08.30 |
mysql_fetch_row함수와 mysql_fetch_array함수의 차이점. [4] | webzzang | 2001.08.22 |
양력을 음력으로... [7] | pupstar | 2001.08.14 |
1900년부터 2043년까지 음력을 양력으로..... [3] | pupstar | 2001.08.14 |
지금까지 살아온 날 계산해 주는 스크립트 [6] | skyel | 2001.07.20 |