| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 406 人关注过本帖
标题:asp编写简单日历的一点疑惑
只看楼主 加入收藏
hai1314yan
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2007-10-21
收藏
 问题点数:0 回复次数:2 
asp编写简单日历的一点疑惑

<body>
<%
dim a,b,c,d,e
a=year(date)
b=month(date)
response.write(a&"年"&b&"月")
response.write"<br>"
%></p>
<hr align="left" width="560" size="2">
<table width="560" height="60" border="1" >
<tr>
<th>星期一</th>
<th>星期二</th>
<th>星期三</th>
<th>星期四</th>
<th>星期五</th>
<th>星期六</th>
<th>星期日</th>
</tr>
<%
response.write("<tr></tr>")
c=datediff("d",a&"-"&b&"-1",a&"-"&(b+1)&"-1")'当月的天数
d=weekday(a&"-"&b&"-1",vbmonday)'1号是星期?
for i=1 to d-1
response.write("<td>&nbsp;</td>")
next
for ii=1 to c
if i=d then
response.write("<td><font color='#ooooff'><div align='center'>"&ii&"</div></font></td>")

if weekday(a&"-"&b&"-"&ii)=1 then
response.write("<tr></tr>")
end if
end if
next
for iii=1 to 35-(d-1)-c
response.write("<td>&nbsp;</td>")
next%>
</table>

</body>

其中在两个微笑表情之间的代码是读不懂的,请高手代为指点下思路,谢谢了 !
搜索更多相关主题的帖子: 日历 asp response 
2007-10-22 15:05
hai1314yan
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2007-10-21
收藏
得分:0 
,怎么没人回复啊,没有高手愿意帮助一下菜鸟么?
2007-10-23 08:56
C语言的深度
Rank: 16Rank: 16Rank: 16Rank: 16
来 自:卡特的怀抱
等 级:版主
威 望:1
帖 子:9577
专家分:19
注 册:2007-10-22
收藏
得分:0 
额``有点不明白这个问题`
你检查下代码

用代码打出楼房...用编程编出幸福...
2007-10-23 08:58
快速回复:asp编写简单日历的一点疑惑
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.014438 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved