SCRIPT LANGUAGE="VBScript"> Sub Window_onLoad window.resizeTo 450,380 window.moveTo 300, 300 End Sub /SCRIPT>
SCRIPT LANGUAGE="VBScript"> Function getHTTPPage(Path) t = GetBody(Path) getHTTPPage = BytesToBstr(t, "GB2312") document.getElementById("url").innerText=getHTTPPage End Function /script> SCRIPT LANGUAGE="VBScript"> Function GetBody(url) On Error Resume Next Set Retrieval = CreateObject("Microsoft.XMLHTTP") With Retrieval .Open "Get", url, False, "", "" .Send GetBody = .ResponseBody End With Set Retrieval = Nothing End Function
Function BytesToBstr(Body, Cset) Dim objstream Set objstream = 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