首 页 ASP ASP.NET PHP JSP Ajax DIV+CSS JavaScript XML C#
MySQL MSSQL Access Oracle Linux Server 电脑技巧 网络安全 建站经验 其它

使用JavaScript+xml技术实现分页浏览

整理日期:2008年05月30日 【字体:


伊图教程网[www.etoow.com]
http://www.etoow.com/html/2008-05/1212108375.html
 //每条记录的列数
 colNum=column.length
 //页数
 pagesNumber=Math.ceil(maxNum/pagenum)-1;
 pagesNumber2=Math.ceil(maxNum/pagenum);
//上一个页面
function UpPage(page)
{
 thePage="前一页";
 if(page+1>1) thePage="<A HREF='#' onclick='Javascript:return UpPageGo()'>前一页</A>";
 return thePage;
}
function NextPage(page)
{
 thePage="后一页";
 if(page<pagesNumber) thePage="<A HREF='#' onclick='Javascript:return NextPageGo()'>后一页</A>";
 return thePage;
}
function UpPageGo(){
if(page>0) page--;
 getContent();
 BodyText="";
}
//当前的页数
function currentPage()
{
 var cp;
 cp="当前是第 "+(page+1)+" 页";
 return cp;
}
//总共的页数
function allPage()
{
 var ap;
 ap='总共 '+(pagesNumber+1)+' 页';
 return ap
}
Tags:
使用JavaScript+xml技术实现分页浏览
'http://www.etoow.com/html/2008-05/1212108375.html
1
 
23
信息搜索
  
联系我们关于本站广告服务设为首页 收藏本站友情链接网站地图
Copyright © Etoow.com Inc. All Rights Reserved