| Flash游戏 |
|
|
|
&为“前线网络与央视国际”联合推出奥运系列游戏 |
|
|
|
|
|
|
| Falsh欣赏 |
|
|
|
|
|
|
|
|
|
|
<%
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("
")
%>