帮我看一下面一段ASP编程代码 谢谢了

来源:百度知道 编辑:UC知道 时间:2024/06/06 18:25:11
sub html()
str=split(delid,",")
i=0
response.write ubound(str)
for i=0 to ubound(str)
ServerURL="http://"&Request.ServerVariables("SERVER_NAME")&"/wytx/ShowJs.asp?JsID="&trim(str(i))&""
Set Mail1 = Server.CreateObject("CDO.Message")
Mail1.CreateMHTMLBody ServerURL,31
AA=Mail1.HTMLBody
Set Mail1 = Nothing
set objfso = Server.CreateObject("Scripting.FileSystemObject")
conn.execute "update js_body set click=1 where ID="&trim(str(i))
set htmout = objfso.CreateTextFile(server.mappath("../html/"&trim(str(i))&".html"))

htmout.write replace(AA,"images/","../images/")
next
htmout.close

set htmout=nothing
set objfso=nothing
response.write "<script language=JavaScript>" & chr(13) & "alert('转静态成功成功!');" &"window.loca

<%
sub html()
str=split(delid,",")
i=0
response.write ubound(str)
for i=0 to ubound(str)
ServerURL="http://"&Request.ServerVariables("SERVER_NAME")&"/wytx/ShowJs.asp?JsID="&trim(str(i))&""
Set Mail1 = Server.CreateObject("CDO.Message")
Mail1.CreateMHTMLBody ServerURL,31
AA=Mail1.HTMLBody
Set Mail1 = Nothing
set objfso = Server.CreateObject("Scripting.FileSystemObject")
set htmout = objfso.CreateTextFile(server.mappath("../html/"&trim(str(i))&".html"))
htmout.write replace(AA,"images/","../images/")
Next
conn.execute "update js_body set click=1 where ID in("&delid&")"
htmout.close

set htmout=nothing
set objfso=nothing
response.write "<script language=JavaScript>" & chr(13) & "alert('转静态成功成功!');" &"wi