在首页适当的位置加入
<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:hh22.net&cl=3"</script>
把hh22.net换成你的域名,不用加“WWW”很简单的代码,不过现在你就可以实现站内搜索了。当然百度提供了更强大,免费的站内搜索代码。
转载于:https://www.cnblogs.com/tuyile006/archive/2006/10/31/545406.html
相关资源:android 百度地图显示搜索城市和POI搜索(源代码)