1.嵌入Google搜索引擎
HTML代码:
<form action="http://www.google.com/search" method="get"> <input name="ie" value="UTF-8" type="hidden" /> <input size="30" name="q" type="text"/> <input name="Search" value="Search" type="submit" /> </form>
如果要限制访问的域名,比如只让Google搜索自己网站上的信息,加入这一句代码即可
<input name="sitesearch" value="你要限制访问的网站" type="hidden" />
2.嵌入BaiDu搜索引擎
在要插入搜索引擎的地方添加:
<iframe id= "baiduframe " border= "0 " vspace= "0 " hspace= "0 " marginwidth= "0 " marginheight= "0 " framespacing= "0 " frameborder= "0 " scrolling= "no " width= "200 " height= "30 " src= "http://unstat.baidu.com/bdun.bsc?tn=huajiachi&csid=102&rkcs=2&bgcr=FFFFFF&ftcr=000000&rk=1&bd=0&bdas=0 "> </iframe>