かんたん作成.com【HTML,CSS,JavaScript,CGI,PHP】

1800カウンター
無料カウンター アクセス解析つき 日本最大級のカウンター数なんと1800種類以上!お気に入りのカウンターが必ずみつかるはず!設置が簡単。デザイン、桁数が選べる。二重カウント防止。表示が速い。アクセス解析できちゃう。昨日、今日のカウンターの表示可能。もちろん無料!!
Bfitセキュア
月額300円でSSLレンタルサーバーあなたのサイトの個人情報は、守られていますか?SSL通信(暗号化通信)を利用することで、あなたのサイトの個人情報を守ります。しかも、月額300円。
Click Here! BIGLOBE
BIGLOBEに入会すると料金がお得!!月額料金987円からのADSL好評受付中

年月日から曜日を調べる(setFullYear, setMonth, setDate)


<html>
<head>
<title>年月日から曜日を調べる</title>
   <script language="JavaScript">
   <!--
   function check() {
      week = new Array('日','月','火','水','木','金','土');
      target = new Date();
      target.setFullYear(document.form1.year.value);
      target.setMonth(document.form1.month.value - 1);
      target.setDate(document.form1.date.value);
      document.form1.day.value = week[target.getDay()]
   }
   //-->
   </script>
   <style>
   <!--
   input   {
      font-size:   17px;
      text-align:   center;
   }
   //-->
   </style>
</head>
<body>
<center>
<form action="" method="" name="form1">
<input type="text" name="year" size="5">年
<input type="text" name="month" size="3">月
<input type="text" name="date" size="3">日
<input type="button" value="は何曜日?" onClick="check()">
<input type="text" name="day" size="3">曜日
</center>
</form>
</body>
</html>
実行する
当サイトはリンクフリーです。
	<a href="http://www.kantansakusei.com/">かんたん作成.com【HTML,CSS,JavaScript,CGI,PHP】</a>