| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 639 人关注过本帖
标题:求ASP转HTML程程序完善
只看楼主 加入收藏
echan
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2013-6-12
结帖率:0
收藏
已结贴  问题点数:20 回复次数:1 
求ASP转HTML程程序完善
<link type=text/css href='private.css' rel=stylesheet>
<table border=0 cellspacing=1 align=center class=navi>
    <tr align=left><th>&nbsp;当前位置:栏目分页</th></tr>
    </table>
    <br>
    <br>
    <!--显示生成进度条-->
<script>
function fs(s,cs)
{
document.getElementById("contents").style.width=s+'%'
document.getElementById("titles").value=s+"%"
document.getElementById("counts").value=cs
}
</script>
&nbsp;生成进度:<span ><input type="text" name="titles" id="titles" value="" style="width:50px; border:0px;font-weight:bold; color:#799ae1"  />&nbsp;共:<input type="text" name="counts" id="counts" value="" style="width:30px; border:0px; text-align:center; font-weight:bold; color:#799ae1" />个文件</span>
<div id="contents" style="height:20px; border:1px solid #FFFFFF; background-color:#799ae1;margin:0 auto;"></div><br>

<%
Function getHTTPPage(url)
    Dim Http
    Set Http=server.createobject("MSXML2.XMLHTTP")
    Http.open "GET",url,false
    Http.send()
    If Http.readystate<>4 Then
    Exit Function
    End If
    getHTTPPage=bytesToBSTR(Http.responseBody,"GB2312")
    Set http = Nothing
    If err.number<>0 Then err.Clear
End Function

Function BytesToBstr(body,Cset)
    Dim objstream
    Set objstream = Server.CreateObject("adodb.stream")
    objstream.Type = 1
    objstream.Mode =3
    objstream.Open
    objstream.Write body
    objstream.Position = 0
    objstream.Type = 2
    objstream.Charset = Cset
    BytesToBstr = objstream.ReadText
    objstream.Close
    Set objstream = nothing
End Function

Function SavePage(FileName,Content)
    Dim FSO,Fout
    Set FSO = Server.CreateObject("Scripting.FileSystemObject")
    Set Fout = FSO.CreateTextFile(Server.Mappath(""&FileName&""),True)
    Fout.Write Content
    Fout.Close
    set Fout = nothing
    set FSO = nothing
End Function

mpage=1

for i = 1 to  1

    Response.Flush
    Response.Clear
    x=int(i*100/mpage)
    response.Write("<script>fs("&x&","&mpage&")</script>")

next

'''''''''免费版暂不支持此功能'''''''''''

response.write " <table cellspacing='1'   class=list align=center>"
response.write "<tr><th   align=left>&nbsp;&nbsp;详细内容!</th></tr>"
response.write "<tr><td  height=500  align=left>&nbsp;&nbsp; 页面 详细内容生成成功! <<  1秒后自动返回</td></tr>"

response.write "</table><script>window.setTimeout(""location.href='zh.asp'"",1000);</script>"

%>
搜索更多相关主题的帖子: function contents border center style 
2013-06-12 11:24
邓士林
Rank: 19Rank: 19Rank: 19Rank: 19Rank: 19Rank: 19
来 自:淮河河畔
等 级:贵宾
威 望:61
帖 子:2392
专家分:13384
注 册:2013-3-3
收藏
得分:20 
完善哪一块啊!二者是有些兼容,你说清楚的

Maybe
2013-06-13 18:36
快速回复:求ASP转HTML程程序完善
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.017162 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved