<SCRIPT language="JavaScript">
<!--
function _Load()
{
document.Form1.TxtTime.value=_getTime();
window.status=_getTime();
setTimeout("_Load()",1000);
}
function _getTime()
{
_date=new Date();
_hh=_date.getHours();
_mm=_date.getMinutes();
_ss=_date.getSeconds();
return _hh+"時"+_mm+"分"+_ss+"秒";
}
//-->
</SCRIPT>
<BODY onload="_Load()">
<HR>
<FORM name="Form1">
<INPUT size="20" type="text" name="TxtTime">
</FORM>
</BODY>
|
|