<%
on error resume next 【程序编程相关:一个猜数字游戏的算法】 【推荐阅读:制作Javascript弹出窗口技巧九则】server.scripttimeout=9999999 【扩展信息:使用“win32 static libr】 function gethttppage(path) t = getbody(path) gethttppage=bytestobstr(t,"gb2312") end functionfunction bytes2bstr(vin)
strreturn = "" for j = 1 to lenb(vin) thischarcode = ascb(midb(vin,j,1)) if thischarcode < &h80 then strreturn = strreturn & chr(thischarcode) else nextcharcode = ascb(midb(vin,j+1,1)) strreturn = strreturn & chr(clng(thischarcode) * &h100 + cint(nextcharcode)) j = j + 1 end if next bytes2bstr = strreturn end functionfunction getbody(url)
on error resume next set retrieval = createobject("microsoft.xmlhttp") ... 下一页