[javascript]代码库
<div class="pg">
<form name="formf" method="post" action="ArticleSearch.jsp">
<input type="hidden" name="keyword" value="<%= keyword %>" />
<input type="hidden" name="pageNo" value="<%= pageNo-1 %>" />
<a onclick="document.formf.submit()">上一页</a>
</form>
<label>
<form action="ArticleSearch.jsp" method="post">
<input type="hidden" name="keyword" value="<%= keyword %>" >
<input name="pageNo" type="text" size="1" title="输入页码,按回车快速跳转" value="<%= pageNo %>">
<span title="共<%= pageSum %>页"> / <%= pageSum %> 页</span>
</form>
</label>
<form name="formn" method="post" action="ArticleSearch.jsp">
<input type="hidden" name="keyword" value="<%= keyword %>" />
<input type="hidden" name="pageNo" value="<%= pageNo+1 %>" />
<a onclick="document.formn.submit()">下一页</a>
</form>
<label>
<form name="form1" action="ArticleSearch.jsp" method="post">
<input type="hidden" name="keyword" value="<%= keyword %>" >
<select name="pageNo" onchange="document.form1.submit()">
<%
for(int count=1; count<=pageSum; count++)
{
%>
<option value="<%= count %>" <%= (pageNo == count) ? "selected" : "" %>>第<%= count %>页</option>
<%}%>
</select>
</form>
</label>
</div>