zl程序教程

您现在的位置是:首页 >  移动开发

当前栏目

asp显示日历效果

ASP 显示 效果 日历
2023-06-13 09:13:41 时间

"先判断是否指定了一个年份和月份,没有则根据当前的年和月份显示 IfRequest("ReqDate")=""then CurrentDate=Date else CurrentDate=Trim(Request("ReqDate")) endif pyear=year(CurrentDate) pmonth=month(CurrentDate)

"以下的代码生成日历显示的表格头内容 %>

""> 年月 ""> nunmonthstartandi"&iv&"") else response.write(""&iv&"") endif else response.write("") endif

"如果能被7整除(每行显示7个)则输出一个换行 ifimod7=0then response.write("

") endif i=i+1 loop %>
[Ctrl+A全选注:如需引入外部Js需刷新才能执行]