JB51 Content Paging Function [Original]_ application Tips

Source: Internet
Author: User
Copy Code code as follows:

Allpages=ubound (Contentarray)
For Dxy_ii=0 to Allpages
pagelist1= "Current" &dxy_ii+1& "/" & (allpages+1) & "page"
Pagepre= ""
Pagelast= ""
If Dxy_ii>0 Then
Cpage=cint (Dxy_ii)
If Cpage<0 then cpage=0
If Cpage=1 Then
cpage1=id& ". htm"
Else
cpage1=id& "_" &cpage& ". htm"
End If
Pagepre= "<a href=" &cpage1& "> previous page </a>"
End If
If Dxy_ii<allpages then pagelast= "<a href=" &id& "_" &dxy_ii+2& ".htm> next page </a>"
For Dxy_i=0 to Allpages
If Dxy_i=0 Then
If Dxy_ii=dxy_i Then
alist=dxy_i+1& ""
Else
alist=alist& "<a href=" &id& ".htm>" &dxy_i+1& "</a>"
End If
Else
If Dxy_ii=dxy_i Then
alist=alist& (dxy_i+1) & ""
Else
alist=alist& "<a href=" &id& "_" &dxy_i+1& ".htm>" &dxy_i+1& "</a>"
End If
End If
Next
Pagelist=pagelist1&pagepre&alist&ahlist&pagelast
Alist= ""

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.