求一段ASP分頁代碼。。會寫的進(jìn)。! 求一個asp分頁顯示得代碼!!!
代碼如下:(希望你可以得到啟示)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>shawl.qiu template</title>
<script type="text/javascript">
//<![CDATA[
onload=function()
{
var oDiv=document.getElementById("main").getElementsByTagName("div");
for(var i=0, j=oDiv.length; i<j; i++)
{
oDiv[i].onclick=function()
{
fHdOth(this);
}
}
}
function fHdOth(oDiv)
{
var oDivRg=oDiv.parentNode.getElementsByTagName("div");
for(var i=0, j=oDivRg.length; i<j; i++)
{
if(oDiv==oDivRg[i])continue;
oDivRg[i].style.display="none";
}
} // shawl.qiu script
//]]>
</script>
</head>
<body>
<div id='main'>
<div>1</div>
<div>2</div>
<div>3</div>
<div>4</div>
<div>5</div>
</div>
</body>
</html>
你要做B/S的還是C/S的啊?
是做WEB應(yīng)用程序吧
只是做了不同頁而已,并不是分頁
你這個不叫分頁!!!!
fghf
ASP里如何實(shí)現(xiàn)既能換行又能分頁呢??
給一段代碼你 自己好好看一下 初略的測試了 是可以的 自己拓展一下 就行了 < set rs=server.CreateObject("adodb.recordset")if pid="" then sql="select * from Products_2L order by orderby desc"else sql="select * from Products_2L where big_id="&cint(pid)&" order by orderby ...
怎么做ASP分頁?最好是123456的這種!
把下列code保存成p_index.asp 100%工作 <%@LANGUAGE="VBScript" codepage="936"%> <!--#include file="ubbcode.asp"--> <!--#include file="conn.asp"--> var currentpos,timer;function initialize(){ timer=setInterval("scrollwindow()",90);} function sc(){ ...
asp分頁代碼
沒有代碼,不知道你的問題出在那里,給你個分頁代碼吧.是我自己程序的,你改一下就行,不明白問我Q24722 < bbc=request("name")page=clng(request("page"))set rs=server.CreateObject("ADODB.RecordSet")sql="select * from LM_article where class='"&bbc&"' and yanzhen=true order by id ...
asp長文章分頁顯示代碼
用個特殊代號來切割,如插入[$NextPage$],然后查找該代碼,進(jìn)行分頁
asp 分頁問題,增加跳轉(zhuǎn)到第幾頁代碼。
if page<allpage then response.write(" 下一頁")這句下邊的改為以下代碼 Response.write "轉(zhuǎn)到:"for n=1 to rs.pagecount Response.write ""&n&""next Response.write "頁"> 如果出錯,那就是上邊已經(jīng)關(guān)閉數(shù)據(jù)庫。可以在計算頁碼那里加一句pagecount=rs.pagecount 把for n=1 ...
ASP分頁問題(每頁的頁碼顯示個數(shù))
currentPage=1 end if '===分頁定義結(jié)束%> <% '===打開數(shù)據(jù)庫數(shù)據(jù)表,要以這種方式打開 set rs=server.createobject("adodb.recordset")sql="select * from * where * order by * "rs.open sql,conn,1,1 > <%'===分頁類代碼開始,需放在數(shù)據(jù)庫數(shù)據(jù)表打開后 if err.number<>0 then r...
asp.net 分頁代碼 首頁 上一頁 1 2 3 4 5 >> …… 30 下一頁 尾頁_百 ...
仿豆瓣分頁原型(Javascript版) \/* Paginator *\/ .paginator { font: 14.8px normal Arial, Helvetica, sans-serif;color: #666666;margin-
asp數(shù)字分頁 控制頁數(shù)的問題
<%if rs.pagecount>10 then k=nowpage-4 For k To k+9 if k=nowpage Then response.write k Else response.write"["&k&"]"End If Next else For k=1 To rs.PageCount if k=nowpage Then response.write k Else response.write"["&k&"]"End If Next end if%> ...
asp.net中repeater簡單的分頁
其實(shí)網(wǎng)上相關(guān)資料是很多的 第一,把前臺頁面寫好,例如 共<asp:Label ID="lblpc" runat="server" Text="Label"><\/asp:Label>頁 當(dāng)前為第 <asp:Label ID="lblp" runat="server" Text="Label"><\/asp:Label>頁 <asp:HyperLink ID="hlfir" runat="server" Text="首頁"><\/asp:HyperLink>...
做一個簡單的ASP分頁程序
這個東西是作為菜鳥的我弄的一個東西.你可以對這個東西不屑一顧.但是請記住: 菜鳥也有這個權(quán)利把自己的心得體會附注文字貢獻(xiàn)出來...當(dāng)然,技術(shù)方面真的是好菜的..一些ASP中的比較正統(tǒng)的中規(guī)中矩的方法.我覺得這個東西可能對初學(xué)者有些幫助...見笑了..一個簡單的分頁教程:<%Set conn = Server.Creat...
相關(guān)評說:
卓資縣工件: ______ <% if Request.QueryString("pageNo")="" then PageNo=1 elseif IsNumeric(Request...
卓資縣工件: ______ 1.If currentPage<2 Then response.write "上一頁"Else 2.If n-currentpage<1 Then response.write "下一頁"Else
卓資縣工件: ______ <%page = request("page...
卓資縣工件: ______ <%for i=1 to totalpage-1%><%=i%>><%=i%>|<%next%><%=totalpage%>><%=totalpage%><&#...
卓資縣工件: ______ <% set rs=server.createobject("adodb.recordset") sql="select Top 30 * from main where huifu=false...
卓資縣工件: ______ 在添加新聞里需要分頁的地方加一個標(biāo)記[page]前臺輸出:page=request("page")'當(dāng)前頁數(shù)if page="" then page=1detail=文章內(nèi)容'取數(shù)...
卓資縣工件: ______ select * from [2008] where " like '%"%' order by id desc",conn,1,1 這句應(yīng)該是select * from [2008] where " like "數(shù)據(jù)庫字段" ...
卓資縣工件: ______ DataList分頁方法核心原理利用PagedDataSource對象PagedDataSource類封裝了DataGrid 控件屬性些屬性使 DataGrid 執(zhí)行分頁下面PagedDataSource公共屬性: ...
卓資縣工件: ______ 有二個方法:一個是通過往內(nèi)容里添加分頁標(biāo)簽,在前臺讀取內(nèi)容的時候用數(shù)組分頁split()好像是這個函數(shù).另外一個是通過js來實(shí)現(xiàn)分頁,js好像是讀取字?jǐn)?shù)的.可能會導(dǎo)致頁面錯位.
卓資縣工件: ______ 毫無疑問是用JS做的,打開源文件就看到具體的實(shí)現(xiàn)代碼了.ltzc { VISIBILITY: hidden; POSITION: absolute; font-size:14px}.cont1 { PADDING-RIGHT: 5px; PADDING-LEFT: 5px; FIL...