 |
|
|  |
| 현재 접속 시간을 텍스트로 뿌려주는 소스... |
|
|
 홈페이지 |
21년 전 |
<style type='text/css'>
<!--
.text { FONT-COLOR: black; FONT-FAMILY: 굴림; FONT-SIZE: 9pt; }
-->
</style>
<SCRIPT LANGUAGE="JavaScript">
<!--
startday = new Date();
clockStart = startday.getTime();
function initStopwatch() {
var myTime = new Date();
return((myTime.getTime() - clockStart)/1000);
}
function getSecs() {
var tSecs = Math.round(initStopwatch());
var iSecs = tSecs % 60;
var iMins = Math.round((tSecs-30)/60);
var sSecs ="" + ((iSecs > 9) ? iSecs : "0" + iSecs);
var sMins ="" + ((iMins > 9) ? iMins : "0" + iMins);
time.innerHTML = sMins+":"+sSecs;
window.setTimeout('getSecs()',1000);
}
//-->
</script>
<BODY onLoad="window.setTimeout('getSecs()',1);">
<p> </p>
<div id="time" class="text"></div> |
|
추천 : 465 |
추천
목록
|
|
|  |
|