页面输出太多会严重影响web程序的性能(2)
2008-02-23 09:42:11来源:互联网 阅读 ()
&oOP=<%=oOP%>&oKey=<%=FilterParam4(oKey)%>
&page_size=<%=tPageSize%><%=add_Option%>';
}
catch(e) {
window.status=e.description
return false;
}
}
< /script>
<font color="#008080" size="2">当前<font color=ff0000>
<%=tCurPage%></font>页 共<font color=ff0000>
<%=tpagecount%></font>页
<br><% if tTotalCount>0 then
for i=1 to tPagecount
%><span onclick='mP(<%=i%>)'><%=i%></span>
<% if browserSize=1 then
if i=20 or i=36 then response.write " "
end if
if i=fCou then
exit for
end if
response.write ""
next
dim allStr
if tpagecount>fCou then
showPageCount=tpagecount
if showPageCount>260 then showPageCount=260
for i=fCou 1 to showPageCount
if browserSize=0 then
m=(i=74 or i=107 or (i>107 and ((i-107) mod 27)=0))
else
m=(i=94 or i=130 or (i>130 and ((i-130) mod 35)=0))
end if
allStr=allStr & "<span onclick='mP(" & i & ")'>" & i & "</span>"
if not m then allStr=allStr & " "
if m then allStr=allStr & "<br>"
if browserSize=1 then
if i=58 or i=71 then allStr=allStr & " "
end if
if i=106 then allStr=allStr & " "
next
allStr=allStr & " 转至 第<input id=""sPageNo""
class=""line"" maxlength=""5""
size=""6"">页 <span onclick='mP(document.getElementById(""sPageNo"").value)'>GO</span>"%><a href="#" title="显示更多…"
id=seemore onclick="var t=document.all.morePage;
var s=document.all.seemore;if (t.style.display=='none')
{t.style.display='';s.innerHTML='<font color=ff0000>∧
</font>';s.title='多余隐藏'};else {t.style.display='none';
s.innerHTML='<font color=ff0000>∨
</font>';s.title='显示更多…'}"><font color=ff0000>∨</font></a>
<span id=morePage style="display:none"><%=allStr%></span>
<%end if
end if
%> </font>
标签:
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有
上一篇:用ASP木马实现FTP和解压缩
下一篇:HTTP 1.1状态代码及其含义
IDC资讯: 主机资讯 注册资讯 托管资讯 vps资讯 网站建设
网站运营: 建站经验 策划盈利 搜索优化 网站推广 免费资源
网络编程: Asp.Net编程 Asp编程 Php编程 Xml编程 Access Mssql Mysql 其它
服务器技术: Web服务器 Ftp服务器 Mail服务器 Dns服务器 安全防护
软件技巧: 其它软件 Word Excel Powerpoint Ghost Vista QQ空间 QQ FlashGet 迅雷
网页制作: FrontPages Dreamweaver Javascript css photoshop fireworks Flash
