? 一篇文章如字數(shù)太多,則用1,2,3....? 分成多頁,便于用戶瀏覽。
<%? set?recordset1=server.createobject("adodb.recordset")? exec="SELECT?*?FROM?news??where?id="&id? recordset1.Open?exec,conn,1,1? %>? ? ???? .......
<% If?Request("page")=""?Then pageNum=0 Else pageNum=Request("page") End?if Content=Replace(recordset1("content"),"|||","|||") ContentStr=split(Content,"|||") For?i=pageNum?to?pageNum %> <%=ContentStr(i)%>? <%?Next?%>
| ???? ?<%if?ubound(ContentStr)>=1?then%> ?????
本文共分? <% For?p?=?0?to?ubound(ContentStr) if?p+1=?Request("page")+1?then a="" aa="" else a="" aa="" end?if %> ??&page=<%=p%>"><%=a%><%=p+1%><%=aa%>? ??<%?Next?%> ??頁? | ???? ????<%end?if%>
?? 添加文章時,在想分頁的地方,加入分割符 ||| 即可。關(guān)鍵詞標簽:代碼,手動,文章,實現(xiàn), 相關(guān)閱讀
熱門文章
ASP編程代碼:隱藏圖片的真實地址
ASP教程:0177:800401f3錯誤解決
ASP代碼中如何屏蔽ip地址 禁止某IP段訪問網(wǎng)站
錯誤80004005信息處理方法 人氣排行
ASP下標越界的解決方法
ASP代碼中如何屏蔽ip地址 禁止某IP段訪問網(wǎng)站
“文件共享鎖定數(shù)溢出” 原因及解決方法
無法寫入數(shù)據(jù)庫的解決方法
ASP教程:0177:800401f3錯誤解決
ASP常用函數(shù)列表
如何用ASP來獲取客戶端真實IP的地址
ASP用FSO生成HTML簡單實例+詳解[原創(chuàng)]
|