<!--
*******************************************************
* Save the code in Page.htm and put it in the Web server directory *
* Visit such as: http://127.0.0.1/page.htm *
* Implementation of the JavaScript paging! *
* Programmer:zero *date:10/10/2001 *
* Www.net7b.com *
*******************************************************
-->
<script language= "JavaScript" >
Initializing information
ASP program can attach value to the array to generate JS file
var news=new Array ();
for (Var i=0;i<3000;i=i+1)
{
News[i]=i;
Document.writeln (news[i]+ "<br>");
}
var countsize;
Countsize=news.length;
var page;
var pagesize;
pagesize=10;
var PageCount;
Pagecount=countsize/pagesize;
var J;
J=math.round (PageCount)-pagecount;
if (j<=0.5)
{
J=math.round (PageCount)-1;
}
Else
{
J=math.round (PageCount);
}
Pagecount=j;
var spage;
var xpage;
var sspage;
var ss=location.href,ss2=location.pathname,ss3=location.hostname;
var kk=ss.length-ss2.length-ss3.length-7-1;
var page=ss.substring (ss.length-kk,ss.length);
if (Page>=pagecount)
{
Xpage=pagecount;
}
Else
{
Sspage=page
Xpage=++sspage;
}
if (page<=1)
{
spage=0;
}
Else
{
spage=page-1;
}
var ipage;
Ipage=page*pagesize;
var pageover;
Pageover=ipage+pagesize;
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.