对于ASP高手当然没什么用了,但是对于刚入门的初学者和美工就有些用处了。
Function selectdo(a,d,b,c)
Response.write"
1<select name='"&a&"'><option>"&d&"</option>"
2for i=b to c
3if i<10 then
4i="0"&i
5end if
6Response.write"<option>"&i&"</option>"
7next
8Response.write"</select>
"
End Function
在此基础上还可以扩展出更完整的SELECT表单。