笔记 by 车东

使用雅虎实现免费站内搜索

经过了一搜 yahoo.com.cn search.cn.yahoo.com这几个域名的变迁,雅虎搜索的很多接口都变化了。今天又有人问我如何使用雅虎进行站内搜索,我做了一个样例:

<form method="get" action="http://search.cn.yahoo.com/search" target="yahoo_window">
<p>
<input type="text" name="p" size="20" maxlength="55" value=""></input>

<input type="radio" name="vs" value=""></input><a>Web</a>
<input type="radio" name="vs" value="**chedong.com**" checked="checked"></input><a>**chedong.com**</a>

<input type="submit" name="sa"></input>

</p>
</form>

替换黑体字部分改成你的域名,然后将以上代码嵌入到网页中就可以了:

另外:如果网站是utf-8字符集的:需要增加一个隐含参数

<input type="hidden" name="ei" value="UTF-8"></input>

💬 历史评论

以下 2 条评论从旧版 Movable Type 博客迁移而来。 原始评论时间:2002–2016 年。

噹噹响的师傅 · 2006-06-13 11:21

不能匿名浏览的网站,如何实现站内免费搜索呢 ?


shunz · 2006-06-18 07:17

to chedong 来自搜索引擎 - 全部列出

  • Google 34516 34554
  • Baidu 11307 17100
  • Yahoo 308 308 为什么来自yahoo的搜索这么少?