急,求助一个分页代码问题。
程序代码:
<% call PageControl(iCount,maxpage,page,"border=0 align=center","<p align=center>") end if rs.close set rs=nothing Sub PageControl(iCount,pagecount,page,table_style,font_style) '生成上一页下一页链接 Dim query, a, x, temp action = "http://" & Request.ServerVariables("HTTP_HOST") & Request.ServerVariables("SCRIPT_NAME") query = Split(Request.ServerVariables("QUERY_STRING"), "&") For Each x In query a = Split(x, "=") If StrComp(a(0), "page", vbTextCompare) <> 0 Then temp = temp & a(0) & "=" & a(1) & "&" End If Next Response.Write("<table width=100% border=0 cellpadding=0 cellspacing=0 >" & vbCrLf ) Response.Write("<form method=get onsubmit=""document.location = '" & action & "?" & temp & "Page='+ this.page.value;return false;""><TR >" & vbCrLf ) Response.Write("<TD align=center height=40>" & vbCrLf ) Response.Write(font_style & vbCrLf ) Response.Write(" Total:<font color=red>" & iCount & "</font> Items " & vbCrLf) Response.Write(" Page/Times:<font color=red>" & page & "</font>/" & pageCount & "Page " & vbCrLf) if page<=1 then Response.Write ("[ First ] " & vbCrLf) Response.Write ("[ Prev ] " & vbCrLf) else Response.Write("<A HREF=" & action & "?" & temp & "Page=1>[ First ]</A> " & vbCrLf) Response.Write("<A HREF=" & action & "?" & temp & "Page=" & (Page-1) & "> [ Prev ] </A> " & vbCrLf) end if if page>=pagecount then Response.Write ("[ Next ] " & vbCrLf) Response.Write ("[ End ] " & vbCrLf) else Response.Write("<A HREF=" & action & "?" & temp & "Page=" & (Page+1) & ">[ Next ] </A> " & vbCrLf) Response.Write("<A HREF=" & action & "?" & temp & "Page=" & pagecount & ">[ End ] </A> " & vbCrLf) end if Response.Write(" To:" & "<INPUT TYEP=TEXT NAME=page SIZE=2 Maxlength=5 VALUE=" & page & ">" & "Page " & vbCrLf & "<INPUT CLASS=go-wenbenkuang type=submit value=GO>") Response.Write("</TD>" & vbCrLf ) Response.Write("</TR></form>" & vbCrLf ) Response.Write("</table>" & vbCrLf ) End Sub %>这个代码如何实现把 TO:后面的页码填写改成下拉列表选择相应的页面? 就是改成附件的第二种效果