可通過下拉框跳轉到指定頁
<script language=
function gopage()
{
document
}
function previouspage()
{
if ( (parseInt(document
document
else
{
document
document
}
}
function nextpage()
{
document
document
}
function gopagebyno(pageno)
{
document
document
}
</script>
<%
Connection m_Connection=null;
Statement m_Statement=null;
ResultSet m_ResultSet=null;
String sql;
String dbpath = application
String connStr =
Class
m_Connection=DriverManager
m_Statement=m_Connection
sql=查詢語句;
m_ResultSet=m_Statement
%>
<div>
<table class=
<%
int i=
int rscount=
int allpages=
if(m_ResultSet!=null)
{m_ResultSet
rscount=m_ResultSet
if(rscount>
{allpages=rscount /
if(rscount>(allpages *
if(curpage==
else{m_ResultSet
while(!m_ResultSet
{%>
<tr valign=
<td><%=m_ResultSet
<td><%=m_ResultSet
<td><input type=
</tr>
<%
i++;
if(i>
m_ResultSet
}
}
m_ResultSet
}
%>
</table>
</div>
<div align=
<form name=
<font color=
<b><font color=red><%=curpage%></font></b><font color=
<font color=
<% if (curpage!=
{out
else
{out
%>
</font>
<font color=
<%if(curpage!=
{out
else
{out
%>
</font>
<font color=
<% if(allpages!=
{out
else
{out
%>
</font>
<font color=
<% if(allpages!=
{out
else
{out
%>
</font>
<select name=
<%for(i=
{if(curpage==i){out
else{out
}
%>
</select>
</form>
</div>
From:http://tw.wingwit.com/Article/program/Java/hx/201311/26911.html