?? page.jsp
字號:
<%
int pages = 0;
int currPages = 0;
int recNums = 0;
// if(request.getAttribute("pages")!=null)
// pages = Utility.getIntValue((String)request.getAttribute("pages"));
// if(request.getAttribute("currPages")!= null)
// currPages = Utility.getIntValue((String)request.getAttribute("currPages"));
// if(request.getAttribute("recNums")!=null)
// recNums = Utility.getIntValue((String)request.getAttribute("recNums"));
%>
<br>
<script>alert("a");</script>
<table style="<%=(pages!= 1 ? "":"display:none")%>" border="0" cellspacing="1" cellpadding="0" bgcolor="#0159BD" id="NavArea" width="100%">
<tr bgcolor="#0159BD">
<td bgcolor="#0159BD">
<table border="0" cellspacing="0" cellpadding="0" width="100%" class="divPage">
<tr bgcolor="#E5E9F8">
<td height="20" width="20%"><nobr><div align="center">共<%=recNums%> 條目<nobr></div></td>
<td width="16%"> </td>
<td width="4%"><nobr><img src="../images/212.gif" name="cpage" width="17" height="18"></nobr></td>
<td width="12%"><nobr>第<%=currPages%>/<label id=maxPage><%=pages%></label>頁</nobr></td>
<td width="12"><nobr><img src="../images/first_page.gif" style="cursor:hand;" id="hpage" width="41" height="14" onclick='<%=currPages!=1? "toPage(1);":""%>'></nobr></td>
<td width="12"><nobr><img src="../images/pre_page.gif" style="cursor:hand;" id="upage" width="41" height="14" onclick='<%=currPages!=1? "toPage("+(currPages-1)+");":""%>'></nobr></td>
<td width="12"><nobr><img src="../images/next_page.gif" style="cursor:hand;" id="dpage" width="41" height="14" onclick='<%=(currPages!=pages)? "toPage("+(currPages+1)+");":""%>'></nobr></td>
<td width="12"><nobr><img src="../images/last_page.gif" style="cursor:hand;" id="tpage" width="41" height="14" onclick='<%=currPages!=pages? "toPage(-2);":""%>'></nobr></td>
</tr>
</table>
</td>
</tr>
</table>
<script language="JavaScript">
<!--
var iRelateURL;
var i;
var preURL = "";
if(document.getElementById("relateURL")==null)
iRelateURL=2;
else iRelateURL = document.getElementById("relateURL").value;
for(i=1;i<=iRelateURL;i++)
preURL += "../";
preURL += "images/";
document.getElementById("cpage").src = preURL+"212.gif";
document.getElementById("hpage").src = preURL+"first_page.gif";
document.getElementById("upage").src = preURL+"pre_page.gif";
document.getElementById("dpage").src = preURL+"next_page.gif";
document.getElementById("tpage").src = preURL+"last_page.gif";
-->
</script>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -