鲁南热线论坛
查看新帖 | 热门话题 | 发帖排行 | 用户列表
今日:0 帖 | 昨日:0 帖 | 最高日:531 帖
主题:936 | 帖子:1884 | 会员:1055 | 新会员 lhlmmmm

隐藏/显示版面 切换模式显示版面 查看区版主资料╃ 站务专区 ╊

隐藏/显示版面 切换模式显示版面 查看区版主资料╃ 热线酒吧 ╊

隐藏/显示版面 切换模式显示版面 查看区版主资料╃ 休闲娱乐 ╊

隐藏/显示版面 切换模式显示版面 查看区版主资料╃ 电子电脑 ╊



<% 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),"") str=str&mid(cutpage(i),1,rr-1)&" " next str=replace(replace(str,"
",""),"
","") response.Write(""&str&"") %>