if contentlen<=Maxpagelen then response.Write content else if page="" then page=1 else page=Cint(page) end if
if pageNumber*MaxPagelen<contentlen then PageNumber=PageNumber+1 end if PageNumber=int(contentlen/Maxpagelen)+1 if page<1 then page=1 if page>PageNumber then page=PageNumber if page=1 then BeginPoint=1 else BeginPoint=MaxPagelen*(page-1)+1 end if if page=PageNumber then EndPoint=contentlen else EndPoint=MaxPagelen*page if EndPoint>=ContentLen then EndPoint=ContentLen end if end if
end if for i=1 to PageNumber response.Write "<a href="[url=http://www.700net.com/article.asp?ID=][color=#0000ff]http://www.700net.com/article.asp?ID=[/color][/url]"" & ArticleID &"&page=" & i & "> "& i &"</a>" Next end sub %>