<script language="JavaScript"> function Scrollwin() { scrollTo(1,650000) }function getXML(URL) { var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); xmlhttp.open("GET",URL, false); try { xmlhttp.send(); var result = xmlhttp.status; } catch(e) { return false; } if(result==200) { return bytes2BSTR(xmlhttp.responseBody); } var xmlhttp = null; } function update() { document.all.x.innerHTML = getXML('http://localhost/my/xml.aspx); Scrollwin(); } setInterval("update()",1000) </script> <script language="vbscript"> Function bytes2BSTR(vIn) Dim strReturn,i,ThisCharCode,innerCode,Hight8,Low8,NextCharCode 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
function Scrollwin()
{
scrollTo(1,650000)
}function getXML(URL) {
var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.open("GET",URL, false);
try {
xmlhttp.send();
var result = xmlhttp.status;
}
catch(e) {
return false;
}
if(result==200) {
return bytes2BSTR(xmlhttp.responseBody);
}
var xmlhttp = null;
}
function update()
{
document.all.x.innerHTML = getXML('http://localhost/my/xml.aspx);
Scrollwin();
}
setInterval("update()",1000)
</script>
<script language="vbscript">
Function bytes2BSTR(vIn)
Dim strReturn,i,ThisCharCode,innerCode,Hight8,Low8,NextCharCode
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>
<body>
<div id=x>
</div>