鲁南热线欢乐无限
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
欢迎PR2以上或ALEXA排名100000以内的大型网站交换首页文字友情链接 |
|
|
站长的QQ :8786288
757899
|
|
|
CopyRight 5e8.CoM 2000-2008 Inc. All rights reserved. 前台受理:13336372928 技术支持:0632-3288718(工作时间) 鲁ICP备05000679号
Τσ βё Сопtìцè....
|
| |
<%
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("
")
%>