网页翻页

来源:百度知道 编辑:UC知道 时间:2024/05/19 07:15:37
点下一页怎么不管用,还是挺在第一页.
<!--#include file="inc_DB.asp" -->
<%
URl="SmallClass.asp?ID="& SmallClassID &"&"
sql="select * from tbl_News_NewsList where NewsAuditing=1 and SmallClassID="& SmallClassID &" order by NewsOnTop desc,NewsUpdateTime desc"
rs.open sql,conn,1,1
Max=rs.RecordCount

if Max=0 then
Response.Write "<span style=""font-size:24px"">正在建设中,暂无内容!</span>"
else
PageShow=10

if Max mod PageShow=0 then
MaxPage=int(Max\PageShow)
else
MaxPage=int(Max\PageShow)+1
end if

if not isnumeric(Page) then
Page=1
elseif int(Page)<1 then
Page=1
elseif int(Page)>MaxPage then
Page=MaxPage
end if

rs.absoluteposition=(Page-1)*PageShow+1
Response.Write "<table width=500 border=0 cellspacing=0 cellpadding=0 background=&quo

function findObj(theObj, theDoc)
{
var p, i, foundObj;

if(!theDoc) theDoc = document;
if( (p = theObj.indexOf("?")) > 0 && parent.frames.length)
{
theDoc = parent.frames[theObj.substring(p+1)].document;
theObj = theObj.substring(0,p);
}
if(!(foundObj = theDoc[theObj]) && theDoc.all) foundObj = theDoc.all[theObj];
for (i=0; !foundObj && i < theDoc.forms.length; i++)
foundObj = theDoc.forms[i][theObj];
for(i=0; !foundObj && theDoc.layers && i < theDoc.layers.length; i++)
foundObj = findObj(theObj,theDoc.layers[i].document);
if(!foundObj && document.getElementById) foundObj = document.getElementById(theObj);

return foundObj;
}

function showHideLayers()
{
var i, visStr, obj, args = showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3)
{
if ((obj = findObj(args[i])) != null)