本站首页    管理页面    写新日志    退出


«September 2026»
12345
6789101112
13141516171819
20212223242526
27282930


公告
努力学习C#。

我的分类(专题)

日志更新

最新评论

留言板

链接


Blog信息
blog名称:Areyan's Blog
日志总数:31
评论数量:10
留言数量:-2
访问次数:140284
建立时间:2005年1月5日




[Script]calendar_vbs
电脑与网络

阿严 发表于 2005/3/21 13:11:37

<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%><% Dim AllMonth_str,toYear_num,toMonth_num,toDate_num,toDay_num,firstWeekDay Dim tempYear_num,tempMonth_num,tempDate_num Dim i,j,k,l AllMonth_str="JanFebMarAprMayJunJulAugSepOctNovDec" toYear_num=Year(Date) toMonth_num=Month(Date) toDate_num=Day(Date) tempYear_num=toYear_num tempMonth_num=toMonth_num tempDate_num=toDate_num  month_str=Mid(AllMonth_str,tempMonth_num+1,3) firstWeekDay=(WeekDay(tempYear_num&","&tempMonth_num&",1")) tempMonth2_num=toMonth_num lastDay_num=28 Do While tempMonth2_num=tempMonth_num  lastDay_num=lastDay_num+1  tempMonth2_num=Month(DateSerial(tempYear_num,tempMonth_num,lastDay_num))     Loop  %><link href="style_txt.css" rel="stylesheet" type="text/css"><table width="140" border="0" align="center" cellpadding="0" cellspacing="0">  <tr class="calendar_txt">    <td width="20">&nbsp;</td>    <td>&lt;&lt;</td>    <td width="80"><div align="center"><%Response.Write(month_str&"."&tempYear_num)%></div></td>    <td>&gt;&gt;</td>    <td width="20">&nbsp;</td>  </tr></table><table width="140" border="0" align="center" cellpadding="0" cellspacing="0">  <tr class="calendar_txt">    <td>&#26085;</td>    <td>&#19968;</td>    <td>&#20108;</td>    <td>&#19977;</td>    <td>&#22235;</td>    <td>&#20116;</td>    <td>&#20845;</td>  </tr></table><% i=1 j=1 k=1 l=1 For i=1 To 6 %><table width="140" border="0" align="center" cellpadding="0" cellspacing="0">  <tr class="calendar_txt"><% For j=1 To 7   If k>=firstWeekDay And l<lastDay_num Then   If l=toDate_num Then    Response.Write("<td width='20' bgcolor='#99CC33'>"&l&"</td>") l=l+1   Else     Response.Write("<td width='20'>"&l&"</td>") l=l+1   End If  Else     Response.Write("<td width='20'></td>")  End If k=k+1 Next%>       </tr></table><% next%>


阅读全文(1773) | 回复(0) | 编辑 | 精华
 



发表评论:
昵称:
密码:
主页:
标题:
验证码:  (不区分大小写,请仔细填写,输错需重写评论内容!)



站点首页 | 联系我们 | 博客注册 | 博客登陆

Sponsored By W3CHINA
W3CHINA Blog 0.8 Processed in 0.031 second(s), page refreshed 144855777 times.
《全国人大常委会关于维护互联网安全的决定》  《计算机信息网络国际联网安全保护管理办法》
苏ICP备05006046号