<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!--
function initArray() {
this.length = initArray.arguments.length;
for (var i = 0; i < this.length; i++)
this[i+1] = initArray.arguments[i];
}
var WeekArray = new
initArray("日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日");
var today = new Date();
var weekday = WeekArray[today.getDay()+1];
var month = today.getMonth()+1;
var day = today.getDate();
alert(month+"月"+day+"日"+weekday+" です。");
//-->
</SCRIPT>
<BODY>
</BODY>
</HTML>
|