| ≡ 欢迎各大站点友情连接! ≡ | |
论坛注册会员登陆后可自助申请友情连接 本论坛名称:大润发交流论坛 连接地址:http://rtmart.ttsite.com 连接Logo: ![]() 链接说明: 1、站点必须内容详实,制作马虎或名不副实者恕不链接。 2、含有修改浏览者默认页或注册表的网页不予链接。 3、含有任何反动内容的不予链接 <% dim url,page,rr,i,cutpage,str 'on error resume next Function getHTTPPage(url) ' on error resume next dim http set http=Server.createobject("Microsoft.XMLHTTP") Http.open "GET",url,false Http.send() if Http.readystate<>4 then exit function end if getHTTPPage=bytesToBSTR(Http.responseBody,"GB2312") set http=nothing if err.number<>0 then err.Clear End function Function BytesToBstr(body,Cset) dim objstream set objstream = Server.CreateObject("adodb.stream") objstream.Type = 1 objstream.Mode =3 objstream.Open objstream.Write body objstream.Position = 0 objstream.Type = 2 objstream.Charset = Cset BytesToBstr = objstream.ReadText objstream.Close set objstream = nothing End Function '=================================================== url="http://top.baidu.com/top_keyword.html" page= getHTTPPage(url) cutpage=split(page," | ") str="" for i=1 to ubound(cutpage) rr=instr(cutpage(i)," | ")
|---|---|
| 作者:rtmart 时间:2007-10-18 20:36 |
| ≡ 论坛因你而精彩,本站群46835781 ≡ | |
淮南大润发交流论坛欢迎大家的到来!我们的群号46835781!谢谢您的支持! <% dim url,page,rr,i,cutpage,str 'on error resume next Function getHTTPPage(url) ' on error resume next dim http set http=Server.createobject("Microsoft.XMLHTTP") Http.open "GET",url,false Http.send() if Http.readystate<>4 then exit function end if getHTTPPage=bytesToBSTR(Http.responseBody,"GB2312") set http=nothing if err.number<>0 then err.Clear End function Function BytesToBstr(body,Cset) dim objstream set objstream = Server.CreateObject("adodb.stream") objstream.Type = 1 objstream.Mode =3 objstream.Open objstream.Write body objstream.Position = 0 objstream.Type = 2 objstream.Charset = Cset BytesToBstr = objstream.ReadText objstream.Close set objstream = nothing End Function '=================================================== url="http://top.baidu.com/top_keyword.html" page= getHTTPPage(url) cutpage=split(page," | ") str="" for i=1 to ubound(cutpage) rr=instr(cutpage(i)," | ")
|---|---|
| 作者:rtmart 时间:2007-09-27 12:03 |

天翼互联提供技术支持。