Elapsed Time
Description:
ページにアクセスしてからの経過時間を表示します。
Demo:
Source:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
<script language="JavaScript" type="text/javascript">
<!--
var etime_atime = new Date();
function elapsedtime() {
var now = new Date();
var ct = parseInt((now.getTime()-etime_atime.getTime())/1000);
document.etimeform.etimetextarea.value="[経過時間 " +parseInt(ct/60)+ ":" +ct%60+ "]";
setTimeout("elapsedtime()",100);
}
//-->
</script>
</head>
<body onload="elapsedtime()">
<form name="etimeform" method="post">
<input name="etimetextarea" size="25">
</form>
</body>
</html>
Advice:
Arrangement:
Browser:
Internet Explorer3.0以上
Netscape Navigator2.0以上