[NN3 IE3] アクセスした日時の表示 

アクセスした日時をテキストで表示します。


<HTML>
<HEAD>
<TITLE></TITLE>
<SCRIPT language="JavaScript">
<!--
acDate=new Date();
myYear=acDate.getYear();
if(myYear<2000){myYear=myYear+1900};
myMonth=acDate.getMonth();
myDate=acDate.getDate();
acDay=new Array("日","月","火","水","木","金","土");
myDay=acDay[acDate.getDay()];
myHour=acDate.getHours();
myMinute=acDate.getMinutes();
mySecond=acDate.getSeconds();
// -->
</SCRIPT>
</HEAD>
<BODY>
<CENTER>
<SCRIPT language="JavaScript">
<!--
document.write("あなたがアクセスしたのは、",myYear,"年",myMonth+1,"月",myDate,"日",myDay,"曜日",myHour,"時",myMinute,"分",mySecond,"秒です。");
// -->
</SCRIPT>
</CENTER>
</BODY>
</HTML>

戻る