得到页面的内容的javascript

类别:编程语言 点击:0 评论:0 推荐:

<SCRIPT type="text/vbscript">
Function bytes2BSTR(vIn)
    strReturn = ""
    For i = 1 To LenB(vIn)
        ThisCharCode = AscB(MidB(vIn,i,1))
        If ThisCharCode < &H80 Then
            strReturn = strReturn & Chr(ThisCharCode)
        Else
            NextCharCode = AscB(MidB(vIn,i+1,1))
            strReturn = strReturn & Chr(CLng(ThisCharCode) * &H100 + CInt(NextCharCode))
            i = i + 1
        End If
    Next
    bytes2BSTR = strReturn
End Function
</script>


<script type="text/javascript" language="javascript1.2">
var xmlhttp =new ActiveXObject("Microsoft.XMLHTTP");
 //xmlhttp.open("GET","http://soft.2118.com.cn/soft/26470.htm",false);
 //xmlhttp.Send();
//var Mygettext = bytes2BSTR(xmlhttp.responseBody);
//alert(Mygettext);
</script>

为了不影响网站,注释掉一部分.

本文地址:http://com.8s8s.com/it/it22293.htm