<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
http://www.corange.cn/archives/2008/10/1912.html
- <td><select name=iyear><%
- dim bires,birse
- for i=1990 to year(now)
- birse=""
- if int(year(bires))=int(i) then
- birse=" selected"
- end if
- response.write vbcrlf&"<option value='"&i&"'"&birse&">"&i&"</option>"
- next
- response.write vbcrlf&"</select>年 <select name=imonth>"
- for i=1 to 12
- birse=""
- if int(month(bires))=int(i) then
- birse=" selected"
- end if
- response.write vbcrlf&"<option value='"&i&"'"&birse&">"&i&"</option>"
- next
- response.write vbcrlf&"</select>月 <select name=iday>"
- for i=1 to 31
- birse=""
- if int(day(bires))=int(i) then
- birse=" selected"
- end if
- response.write vbcrlf&"<option value='"&i&"'"&birse&">"&i&"</option>"
- next
- %></select>日<%response.write redx%></td>
ASP日期选择器
本文介绍了一个使用ASP编写的日期选择器代码示例。该选择器能够动态生成包含年份、月份及日期的下拉菜单,并根据当前年份进行初始化。通过简单的VBScript脚本语言实现,适用于需要用户输入具体日期的Web应用程序。
4426

被折叠的 条评论
为什么被折叠?



