純ASP打造的日歷程序
<style>
body{font
tr
</style>
<%
Ryear = CInt(request
Rmonth = CInt(request
If Ryear =
If Rmonth =
nowtime = Ryear&"
nowyear = year(nowtime)
nowmonth = month(nowtime)
nowweekday = weekday(nowtime)
febdays =
If nowyear /
If nowmonth =
monthdays =
ElseIf nowmonth =
monthdays = febdays
ElseIf nowmonth =
monthdays =
ElseIf nowmonth =
monthdays =
ElseIf nowmonth =
monthdays =
ElseIf nowmonth =
monthdays =
ElseIf nowmonth =
monthdays =
ElseIf nowmonth =
monthdays =
ElseIf nowmonth =
monthdays =
ElseIf nowmonth =
monthdays =
ElseIf nowmonth =
monthdays =
Else
monthdays =
End If
calendar = "<a calendar
willshowmonthmonth = nowmonth
If willshowmonthmonth
calendar = calendar & "<a calendar
If willshowmonthmonth +
calendar = calendar & "<a calendar
calendar = calendar & "<a calendar
calendar = calendar & "<table bgcolor=#
calendar = calendar & " <tr bgcolor=#ffffff>"&VBCRLF
calendar = calendar & "<td>日</td>"&VBCRLF
calendar = calendar & "<td>一</td>"&VBCRLF
calendar = calendar & "<td>二</td>"&VBCRLF
calendar = calendar & "<td>三</td>"&VBCRLF
calendar = calendar & "<td>四</td>"&VBCRLF
calendar = calendar & "<td>五</td>"&VBCRLF
calendar = calendar & "<td>六</td>"&VBCRLF
calendar = calendar & "</tr>"&VBCRLF
calendar = calendar & VBCRLF&"<tr bgcolor=#ffffff>"&VBCRLF
nowmonthfirstiweekday = weekday(nowyear&"
For i=
calendar = calendar & "<td bgcolor=#efefef> </td>"&VBCRLF
Next
t=
For i=
If year(now) = year(nowyear&"
calendar = calendar & "<td bgcolor=#cccccc><a >"&i&"</a></td>"&VBCRLF
Else
calendar = calendar & "<td>"&i&"</td>"&VBCRLF
End If
If weekday(nowyear&"
t=t+
calendar = calendar & "</tr><tr bgcolor=#ffffff>"&VBCRLF
End if
Next
For i=
calendar = calendar & "<td bgcolor=#ffffff></td>"&VBCRLF
Next
calendar = calendar & VBCRLF&"</tr>"
calendar = calendar & "</table>"&VBCRLF
Response
%>
From:http://tw.wingwit.com/Article/program/net/201311/14465.html