asp分页生成html的程序脚本代码

2019-04-02 04:13:26于丽

else 
ref=ref&"<a href=list_"&j-1&".html"&">" & "<FONT face=Webdings>7</FONT>" & "</a> " 
end if 

for counter=1 to totalpage 
ref=ref&"<a href=list_"&counter&".html"&">[" & counter & "]</a>" 
ref=ref& " " 
if counter mod 10 = 0 then 
ref=ref& "<br>" 
end if 
next 

if (whichpage>totalpage or whichpage=totalpage) then 
ref=ref&"<FONT face=Webdings>8</FONT>" 
else 
ref=ref&"<a href=list_"&j+1&".html"&">" & "<FONT face=Webdings>8</FONT>" & "</a> " 
end if 
ref=ref&"<a href=list_"&totalpage&".html"&">" & "<FONT face=Webdings>:</FONT>" & "</a> " 

Dim fso,f 
Dim strTitle,strContent,strOut 
'创建文件系统对象 
Set fso=Server.createObject("Scripting.FileSystemObject") 
Set f=fso.createTextFile(Server.MapPath("list_"&j&".html"),true) 

'写入网页内容 
f.WriteLine strHead&str0&ref 
f.close 
response.write "正在生成第"&j&"个页面!<br>" 
%><% 
next%>

您可能感兴趣的文章:

IIS6 中"ASP 0201 错误 无效的默认脚本语言" 的解决方法使用ASP控制指定站点解析脚本语言函数用InstallShield打包ASP程序的脚本隐藏修改文件时间和文件属性的ASP脚本ASP.NET调用javascript脚本的常见方法小结从一个网站扒下的asp生成静态页面的代码 易采站长站特供版iis、apache与nginx禁止目录执行asp、php脚本的实现方法ASP上传漏洞之利用CHR(0)绕过扩展名检测脚本ASP中Server.Execute和Execute实现动态包含(include)脚本的区别ASP.NET中后台注册js脚本使用的方法对比ASP程序中常用的脚本语言