Kyujitsu = 0 Furikae = 0 Counter = 1 Response.Write "<tr>" If Counter <> Youbi Then For J = 1 To (Youbi - 1) Response.Write Day_Td & Day_Tde Next Counter = Youbi End if For I = 1 To MaxDay If (I = NowDay) Then Response.Write Day_Td2 Else Response.Write Day_Td End if If (Counter = 1) Then Response.Write "<font color=red>" If (Counter = 7) Then Response.Write "<font color=blue>" NowDay2 = 100*NowMonth + I If (NowDay2 = 101) Or (NowDay2 = 109) Or (NowDay2 = 211) Or (NowDay2 = 321) Or (NowDay2 = 429) Or (NowDay2 = 503) Or (NowDay2 = 504) Or (NowDay2 = 505) Or (NowDay2 = 718) Or (NowDay2 = 918) Or (NowDay2 = 923) Or (NowDay2 = 1009) Or (NowDay2 = 1103) Or (NowDay2 = 1123) Or (NowDay2 = 1223) Then Response.Write "<font color=red>" Kyujitsu = 1 End if If (Furikae = 1) Then Response.Write "<font color=red>" End if Response.Write I If (Counter = 1) Or (Counter = 7) Then Response.Write "</font>" If (Kyujitsu = 1) Then Response.Write "</font>" End if If (Furikae = 1) Then Response.Write "</font>" Furikae = 0 End if If (Kyujitsu = 1) Then If Counter = 1 Then Furikae = 1 End if Kyujitsu = 0 End if Response.Write Day_Tde Counter = Counter + 1 If Counter = 8 Then Response.Write "</tr><tr>" Counter = 1 End if Next Response.Write "</tr>" Response.Write "</table></font>" End Select %> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=x-sjis"> <title>カレンダー表示(日付指定)</title> </head> <body>
<form method="POST" action="Calendar2.asp?ACT=WRITE"> <p><input type="text" name="Year" size="8" value="<% = Year(Now) %>">年<select size="1" name="Month"> <% For I = 1 To 12 If (I = Month(Now)) Then Response.Write "<option selected>" & I & "</option>" Else Response.Write "<option>" & I & "</option>" End if Next %> </select>月<br> <input type="submit" value="カレンダー表示" name="B1"><input type="reset" value="リセット" name="B2"></p> </form>