space
テクニック:今日の日付A
 
space



Script
<html>
< head>
< meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
< title>今日の日付A</title>
< /head>

<body>
<hr align="left" width="550">
<SCRIPT language=JavaScript>
<!--
var d=new Date();
var days=new Array("日","月","火","水","木","金","土");
var rokki=new Array("先勝","友引","先負","仏滅","大安","赤口");
var m=new Array(0,1,2,3,4,5,0,1,2,5,0,1,2,3,4,5,0,1,2,3,4,5,0,1,2,3,4,5,3,4,5);
var e=m[d.getDate()-1];
document.write("今日は",d.getFullYear(),"年",d.getMonth()+1,"月",d.getDate(),"日(",days[d.getDay()],")",rokki[e],"です。");
// -->
</SCRIPT>
<hr align="left" width="550">
< /body>
< /html>

return