您现在的位置是:网站首页> 编程资料编程资料
jb51内容分页函数[原创]_应用技巧_
2023-05-25
209人已围观
简介 jb51内容分页函数[原创]_应用技巧_
复制代码 代码如下:
allpages=ubound(contentarray)
for dxy_ii=0 to allpages
pagelist1="当前"&dxy_ii+1&"/"&(allpages+1)&"页 "
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="上一页 "
end if
if dxy_ii
for dxy_i=0 to allpages
if dxy_i=0 then
if dxy_ii=dxy_i then
alist=dxy_i+1&" "
else
alist=alist&""&dxy_i+1&" "
end if
else
if dxy_ii=dxy_i then
alist=alist&(dxy_i+1)&" "
else
alist=alist&""&dxy_i+1&" "
end if
end if
next
pagelist=pagelist1&pagepre&alist&ahlist&pagelast
alist=""
