indextishi.js

来自「网店批发系统,很好很强大,很好很强大很好很强大」· JavaScript 代码 · 共 84 行

JS
84
字号
<script language="VBScript">
Function URLEncoding(vstrIn)
    strReturn = ""
    For i = 1 To Len(vstrIn)
        ThisChr = Mid(vStrIn,i,1)
        If Abs(Asc(ThisChr)) < &HFF Then
            strReturn = strReturn & ThisChr
        Else
            innerCode = Asc(ThisChr)
            If innerCode < 0 Then
                innerCode = innerCode + &H10000
            End If
            Hight8 = (innerCode  And &HFF00)\ &HFF
            Low8 = innerCode And &HFF
            strReturn = strReturn & "%" & Hex(Hight8) &  "%" & Hex(Low8)
        End If
    Next
    URLEncoding = strReturn
End Function

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  language="javaScript">
	var http  = getHTTPObject();
	
	function getHTTPObject()
	{
		var http=null;
		if(window.ActiveXObject)
		{
			http=new ActiveXObject("Msxml2.XMLHTTP");
			if(!http)
			{
				http=new ActiveXObject("Microsoft.XMLHTTP");
			}
		}
		else if(window.XMLHttpRequest)
		{
			http=new XMLHttpRequest();
		}
		return http;
	}
	
	function handleHttpResponse() 
	{

	  	if (http.readyState == 4) {
	
		// Split the comma delimited response into an array
	
		results = http.responseText;			
		
		document.getElementById('showText').innerHTML = results;
	
	  	}
	
	}
	
	function showText()
	{
		var url = "showText.asp";
		
		http.open("GET", url , true);
	  	  
	  	http.onreadystatechange = handleHttpResponse;
		
		http.send(null);
	}
</script>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?