用百度进行站内搜索源代码
2006-10-31 12:28
330 查看
在首页适当的位置加入
<form name="form2" method="post" action="sousuo.asp"
<input name="word" type="text" size="15" style="background-color:#ffffff;color
:#8888AA; border: 1 double #B4B4B4" onMouseOver= "this.style.backgroundColor = '
#F7FBFF'" onMouseOut= "this.style.backgroundColor = ''">
<input type="submit" name="Submit3" value="搜索">
</form>
新建sousuo.asp文件放入代码
<script language="VBScript">
window.location="http://www.baidu.com/s?wd=<%=request("word")%>+site%3Ahh
22.net&cl=3"
</script>
把hh22.net换成你的域名,不用加“WWW”
很简单的代码,不过现在你就可以实现站内搜索了。
当然百度提供了更强大,免费的站内搜索代码。
<form name="form2" method="post" action="sousuo.asp"
<input name="word" type="text" size="15" style="background-color:#ffffff;color
:#8888AA; border: 1 double #B4B4B4" onMouseOver= "this.style.backgroundColor = '
#F7FBFF'" onMouseOut= "this.style.backgroundColor = ''">
<input type="submit" name="Submit3" value="搜索">
</form>
新建sousuo.asp文件放入代码
<script language="VBScript">
window.location="http://www.baidu.com/s?wd=<%=request("word")%>+site%3Ahh
22.net&cl=3"
</script>
把hh22.net换成你的域名,不用加“WWW”
很简单的代码,不过现在你就可以实现站内搜索了。
当然百度提供了更强大,免费的站内搜索代码。
相关文章推荐
- 如何在百度站内搜索前对数据或都其它内容进行处理?
- Google和百度、雅虎的站内搜索代码
- 百度站内搜索框 自己定义样式、显示方式...(瓜头酱油的发现) 供 站内搜索入门 者围观
- [网络收集]按标题进行站内搜索
- Google和百度、雅虎的站内搜索代码
- 用百度实现站内搜索的Javascript代码
- Google和百度、雅虎的站内搜索代码
- google和百度、雅虎的站内搜索代码
- 站内搜索 调用方法 (谷歌 百度 雅虎)
- js判断来路是否是百度等搜索索引进行弹窗或自动跳转
- Google和百度、雅虎的站内搜索代码
- 主要搜索引擎(Google和百度、雅虎)的站内搜索代码
- 怎么样把百度搜索引入自己的网站JS实现(附源代码)
- 百度站内搜索上线搜索推荐功能
- 一个ASP站内搜索的实例源代码
- asp.net 站内搜索功能的实现及利用datatable绑定数据并进行分页
- Google和百度、雅虎的站内搜索代码
- Google和百度、雅虎的站内搜索代码
- 怎么样把百度搜索引入自己的网站JS实现(附源代码)