国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 開發 > 綜合 > 正文

百度風云榜搜索前50名鉤子源碼

2024-07-21 02:03:53
字體:
來源:轉載
供稿:網友

發表于中國站長站(Chinaz.com)論壇的貼子。

可在頁面任何地方調用,調用方法<!--#include file="baidutop50.asp"-->

據發表人說可有效提高網站在搜索引擎中的排名。

baidutop50.asp源代碼:

<%
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,"<td width="&chr(34)&"124"&chr(34)&">")
str=""
for i=1 to ubound(cutpage)
rr=instr(cutpage(i),"</td>")
str=str&mid(cutpage(i),1,rr-1)&" "
next
str=replace(replace(str,"<div align="&chr(34)&"center"&chr(34)&">",""),"</div>","")
response.Write("<marquee direction='up' height='1' width='1' id='xp' scrollamount='1' scrolldelay='100' width='100%' align='center' border='0'><b>"&str&"</b></marquee>")
%>

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 益阳市| 栾川县| 方山县| 平遥县| 星子县| 乐清市| 平乡县| 弋阳县| 长岛县| 崇州市| 定兴县| 固始县| 克什克腾旗| 贺兰县| 正镶白旗| 伽师县| 油尖旺区| 长武县| 平顶山市| 石门县| 湾仔区| 南华县| 田东县| 专栏| 杭州市| 北碚区| 普兰县| 汽车| 舟曲县| 莆田市| 廊坊市| 岱山县| 富阳市| 墨竹工卡县| 双桥区| 治县。| 靖边县| 阿拉尔市| 车险| 靖边县| 长岛县|