Copy Code code as follows:
<!--
ASP Paging function
function Showlistpage (page,pcount,topicnum,maxperpage,strlink,listname) {
var alertcolor = ' #FF0000 ';
Maxperpage=math.floor (Maxperpage);
Topicnum=math.floor (Topicnum);
Page=math.floor (page);
var n,p;
if ((page-1)%10==0) {
p= (page-1)/10
}else{
P= ((page-1)-(page-1)%10)/10)
}
if (topicnum%maxperpage==0) {
N=topicnum/maxperpage;
}else{
N= (topicnum-topicnum%maxperpage)/maxperpage+1;
}
document.write (' <table border= "0" cellpadding= "0" cellspacing= "1" class= "Tableborder5" > ");
document.write (' <form method=post action= "pcount= ' +pcount+strlink+ '" > ');
document.write (' <tr align= ' center ' > ');
document.write (' <td class= "tabletitle1" title= "' +listname+ '" > ' +listname+ ' </td> ');
document.write (' <td class= "Tabletitle1" title= "Total" > ' +topicnum+ ' </td> ");
document.write (' <td class= "Tabletitle1" title= "every page" > ' +maxperpage+ ' </td> ');
document.write (' <td class= "tabletitle1" title= "page times" > ' +page+ '/' +pcount+ ' page </td> ');
if (page==1) {
document.write (' <td class= ' tablebody1 ' > <font face=webdings>9</font> </td> ');
}else{
document.write (' <td class= "tablebody1" > <a href= "page=1" +strlink+ "" Home "title= ><font >9</font></a> </td> ');
}
if (p*10 > 0) {
document.write (' <td class= ' tablebody1 ' > <a href= ' page= ' +p*10+strlink+ ' "on page 10" title= ><font Webdings>7</font></a> </td> ');
}
if (Page < 2) {
document.write (' <td class= "tablebody1" > Home </td> ');
document.write (' <td class= ' tablebody1 ' > Prev </td> ');
}else{
document.write (' <td class= "tablebody1" > <a href= "? page=1 ' +strlink+ '" title= "Home" > Home </a> </td > ');
document.write (' <td class= "tablebody1" > <a href= "? page= ' + (page-1) +strlink+ '" title= "prev" > previous page </a> </td> ');
}
if (Pcount-page < 1) {
document.write (' <td class= "tablebody1" > Next page </td> ");
document.write (' <td class= ' tablebody1 ' > Last </td> ');
}else{
document.write (' <td class= "tablebody1" > <a href= "? page= ' + (page+1) +strlink+ '" title= "Next" > next page </a> </td> ');
document.write (' <td class= "tablebody1" > <a href= "? page= ' +pcount+strlink+ '" title= "last" > End </a> < /TD> ');
}
for (Var i=p*10+1;i<p*10+11;i++) {
if (i==n) break;
}
if (i<n) {
document.write (' <td class= "tablebody1" > <a href= "" page= "+i+strlink+" "10 pages" title= ><font Webdings>8</font></a> <td> ');
}
if (page==n) {
document.write (' <td class= ' tablebody1 ' > <font face=webdings>:</font> </td> ');
}else{
document.write (' <td class= ' tablebody1 ' > <a href= ' "page= ' +n+strlink+ '" Last "title= ><font >:</font></a> </td> ');
}
document.write (' <td class= "tablebody1" ><input class= "pageinput" type=text name= "page" size=1 maxlength=10 Value= "' +page+ '" ></td> ");
document.write (' <td class= "tablebody1" ><input type=submit value=go name=submit class= "PageInput" ></ Td> ');
document.write (' </tr> ');
document.write (' </form></table> ');
}
HTML page-Paging function
function Showhtmlpage (page,pcount,topicnum,maxperpage,strlink,extname,listname) {
var alertcolor = ' #FF0000 ';
Maxperpage=math.floor (Maxperpage);
Topicnum=math.floor (Topicnum);
Page=math.floor (page);
var n,p;
if ((page-1)%10==0) {
p= (page-1)/10
}else{
P= ((page-1)-(page-1)%10)/10)
}
if (topicnum%maxperpage==0) {
N=topicnum/maxperpage;
}else{
N= (topicnum-topicnum%maxperpage)/maxperpage+1;
}
document.write (' <table border= "0" cellpadding= "0" cellspacing= "1" class= "Tableborder5" > ");
document.write (' <form method=post> ');
document.write (' <tr align= ' center ' > ');
document.write (' <td class= "tabletitle1" title= "' +listname+ '" > ' +listname+ ' </td> ');
document.write (' <td class= "Tabletitle1" title= "Total" > ' +topicnum+ ' </td> ");
document.write (' <td class= "Tabletitle1" title= "every page" > ' +maxperpage+ ' </td> ');
document.write (' <td class= "tabletitle1" title= "page times" > ' +page+ '/' +pcount+ ' page </td> ');
if (page==1) {
document.write (' <td class= ' tablebody1 ' > <font face=webdings>9</font> </td> ');
}else{
document.write (' <td class= "tablebody1" > <a href= "index ' +extname+ '" title= "Home" ><font face=webdings >9</font></a> </td> ');
}
if (p*10 > 0) {
document.write (' <td class= "tablebody1" > <a href= "' +strlink+ (p*10) +extname+ '" title= "on 10 pages" ><font face= Webdings>7</font></a> </td> ');
}
if (Page < 3) {
document.write (' <td class= "tablebody1" > Home </td> ');
document.write (' <td class= "tablebody1" > <a href= "index ' +extname+ '" title= "previous page" > previous page 1</a> </td > ');
}else{
document.write (' <td class= "tablebody1" > <a href= "index ' +extname+ '" title= "Home" > Home 1/a> </td> ');
document.write (' <td class= "tablebody1" > <a href= "' +strlink+ (page-1) +extname+ '" title= "prev" > previous page </a > </td> ');
}
if (Pcount-page < 1) {
document.write (' <td class= "Tablebody1" > Next 1 </td> ');
document.write (' <td class= ' tablebody1 ' > Last </td> ');
}else{
document.write (' <td class= "tablebody1" > <a href= "' +strlink+ (page+1) +extname+ '" title= "Next" > next page </a > </td> ');
document.write (' <td class= "tablebody1" > <a href= "' +strlink+pcount+extname+ '" title= "last" > End </a> </td> ');
}
for (Var i=p*10+1;i<p*10+11;i++) {
if (i==n) break;
}
if (i<n) {
document.write (' <td class= "tablebody1" > <a href= "' +strlink+i+extname+ '" title= "next 10 pages" ><font face= Webdings>8</font></a> <td> ');
}
if (page==n) {
document.write (' <td class= ' tablebody1 ' > <font face=webdings>:</font> </td> ');
}else{
document.write (' <td class= "tablebody1" > <a href= "' +strlink+n+extname+ '" title= "last" ><font face= Webdings>:</font></a> </td> ');
}
document.write (' <td class= "Tabletitle1" title= "to" > Go </td> ");
document.write (' <td class= "tablebody1" ><select class= "pageinput" name= "page" size= "1" onchange= "javascript : Window.location=this.options[this.selectedindex].value; " > ');
document.write (' <option value= "index ' +extname+ '" > 1th page </option> ');
for (Var i=2;i<topicnum;i++) {
if (i==page) {
document.write (' <option value= "' +strlink+i+extname+ '" selected> "+i+ ' page </option> ');
}else{
if (i==1) {
document.write (' <option value= "index ' +extname+ '" > 1th page </option> ');
}else{
document.write (' <option value= "' +strlink+i+extname+ '" > ' +i+ ' page </option> ');
}
}
if (i==n) break;
}
document.write (' </select></td> ');
document.write (' </tr> ');
document.write (' </form></table> ');
}
-->