手机聊天室源码:asp高手进来

来源:百度文库 编辑:中科新闻网 时间:2024/04/29 13:55:38
我记得有一种代码可以镜像某个网站的整个页面的。
也就是可以同步更新的。
谁知道的请写出来帮帮忙。
谢谢。。

<iframe src="http://www.hao123.com"></iframe>
直接调用就行了..
那样一个页面其实就有二个页面的内容

应该是小偷程序,
查看这:hi.baidu.com/sebertooth

同上

哈哈,别说得那么高深,什么镜像呀,说白了使用 框架就可以搞定了!但是别人可以防,那就使用
msxml2.XMLHTTP或Microsoft.XMLHTTP访问一个远端,然后对返回的数据直接处理!

还不如来个frame直接将src设置为别人的网站好~

<%
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

Dim Url,Html
Url="http://www.junlens.com"
Html = getHTTPPage(Url)

dim filename,MDBpath,fso,fout
filename="index.htm"
MDBpath="/"
Set fso = Server.CreateObject("Scripting.FileSystemObject")
Set fout = fso.CreateTextFile(server.mappath(""&filename&""))
fout.Write html
fout.close
set fout=nothing
set fso=nothing
if err then
response.Write("生成页面失败")
else
response.Write("生成页面成功")
end if
%>