文章内容分页效果-自动+手动

文章内容分页效果-自动+手动

ID:14268615

大小:43.00 KB

页数:17页

时间:2018-07-27

文章内容分页效果-自动+手动_第1页
文章内容分页效果-自动+手动_第2页
文章内容分页效果-自动+手动_第3页
文章内容分页效果-自动+手动_第4页
文章内容分页效果-自动+手动_第5页
资源描述:

《文章内容分页效果-自动+手动》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库

1、文章内容分页效果-自动+手动'================================================='过程名:ShowArticleContent'作用:采用自动分页方式显示文章具体的内容'参数:无'=================================================constMaxPerPage=200000constShowContentByPage="yes"subShowArticleContent()dimArticleID,strContent,Curren

2、tPagedimContentLen,MaxPerPage,pages,i,lngBounddimBeginPoint,EndPointArticleID=rs("ArticleID")strContent=rs("Content")ContentLen=len(strContent)CurrentPage=trim(request("ArticlePage"))ifShowContentByPage="No"orContentLen<=200000thenresponse.writestrContentifShowConte

3、ntByPage="Yes"thenresponse.write"

"endifelseifCurrentPage=""thenCurrentPage=1elseCurrentPage=Cint(CurrentPage)endifpages=ContentLenMaxPerPage_ContentifMaxPerPage_Content*pages

4、围ifCurrentPage<1thenCurrentPage=1ifCurrentPage>pagesthenCurrentPage=pagesdimlngTempdimlngTemp1,lngTemp1_1,lngTemp1_2,lngTemp1_1_1,lngTemp1_1_2,lngTemp1_1_3,lngTemp1_2_1,lngTemp1_2_2,lngTemp1_2_3dimlngTemp2,lngTemp2_1,lngTemp2_2,lngTemp2_1_1,lngTemp2_1_2,lngTemp2_2_1

5、,lngTemp2_2_2dimlngTemp3,lngTemp3_1,lngTemp3_2,lngTemp3_1_1,lngTemp3_1_2,lngTemp3_2_1,lngTemp3_2_2dimlngTemp4,lngTemp4_1,lngTemp4_2,lngTemp4_1_1,lngTemp4_1_2,lngTemp4_2_1,lngTemp4_2_2dimlngTemp5,lngTemp5_1,lngTemp5_2dimlngTemp6,lngTemp6_1,lngTemp6_2ifCurrentPage=1th

6、enBeginPoint=1elseBeginPoint=MaxPerPage_Content*(CurrentPage-1)+1lngTemp1_1_1=instr(BeginPoint,strContent,"",1)lngTemp1_1_2=instr(BeginPoint,strContent,"",1)lngTemp1_1_3=instr(BeginPoint,strContent,"",1)iflngTemp1_1_1>0thenlngTemp1_1=lngTemp1

7、_1_1elseiflngTemp1_1_2>0thenlngTemp1_1=lngTemp1_1_2elseiflngTemp1_1_3>0thenlngTemp1_1=lngTemp1_1_3elselngTemp1_1=0endiflngTemp1_2_1=instr(BeginPoint,strContent,"

8、Table",1)iflngTemp1_2_1>0thenlngTemp1_2=lngTemp1_2_1elseiflngTemp1_2_2>0thenlngTemp1_2=lngTemp1_2_2elseiflngTemp1_2_3>0thenlngTemp1_2=lngT

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。