图老师设计创意栏目是一个分享最好最实用的教程的社区,我们拥有最用心的各种教程,今天就给大家分享两种小偷程序的比较的教程,热爱PS的朋友们快点看过来吧!
【 tulaoshi.com - Web开发 】
function gethttppage(url)dim httpset http=createobject("MICROSOFT.XMLHTTP")http.open "GET",url,falsehttp.send()if http.readystate<>4 thenexit functionend ifgethttppage=bytestostr(http.responseBody,"GB2312")if err.number<>0 then err.clearend function
function bytestostr(body,cset)dim objstreamset objstream=createobject("adodb.stream")objstream.type=1objstream.mode=3objstream.openobjstream.write bodyobjstream.position=0objstream.type=2objstream.charset=csetbytestostr=objstream.readtextobjstream.closeset objstream=nothingend function
function savetofile(bodyall,filename)dim objstream1set objstream1=createobject("adodb.stream")objstream1.type=2objstream1.openobjstream1.position=objstream1.sizeobjstream1.writetext bodyallobjstream1.savetofile filename,2objstream1.closeset objstream1=nothingend function
dim url,httpurl="http://www.86516.com"html=gethttppage(url)'msgbox htmlsavefilename="index1.htm"savetofile html,savefilename
(本文来源于图老师网站,更多请访问http://www.tulaoshi.com/webkaifa/)
来源:http://www.tulaoshi.com/n/20160219/1601062.html