<div class="part_r_b">
<script language="javascript">
//搜索
function go_search()
{
var type = document.search_form.type.value;
if(type=='2') //百度
{
document.search_form.word.value = document.search_form.search_key.value;
document.search_form.action= "http://www.baidu.com/baidu";
}else if(type=='3') //新浪
{
document.search_form._searchkey.value = document.search_form.search_key.value;
document.search_form.action= "http://search.sina.com.cn/cgi-bin/search/search.cgi";
}else //google
{
document.search_form.q.value = document.search_form.search_key.value;
document.search_form.action= "http://www.google.com/search";
document.search_form.method='get';
}
document.search_form.method='get';
document.search_form.target= "_blank";
document.search_form.submit();
}
</script>
<form id="search_form" name="search_form">
<input type="hidden" value="utf-8" name="ie"/>
<input type="hidden" value="utf-8" name="oe"/>
<input type="hidden" value="zh-CN" name="hl"/>
<input type="hidden" value="" name="q"/>
<input type="hidden" value="" name="word"/>
<input type="hidden" value="sousouwang_pg" name="tn"/>
<input type="hidden" value="" name="_searchkey"/>
<input type="hidden" value="" name="type"/>
<input type="" οnfοcus="if(this.value=='请输入关键字')this.value=''" value="请输入关键字" name="search_key" size="10" class="txt"/>
<input type="image" class="sbt" value="search" οnclick="go_search();return false;" src="/index/images/icon/btn_search02.jpg"/>
<span>
<input type="radio" class="rad" checked="checked" οnclick="document.search_form.type.value=this.value" value="1" name="search_type"/><img src="/index/images/pic/pic_google.gif"/>
<input type="radio" class="rad" οnclick="document.search_form.type.value=this.value" value="2" name="search_type"/><img src="/index/images/pic/pic_baidu.gif"/>
<input type="radio" class="rad" οnclick="document.search_form.type.value=this.value" value="3" name="search_type"/><img src="/index/images/pic/pic_yahoo.gif"/>
</span>
</form>
</div>
嵌入GOOGLE百度搜索代码
最新推荐文章于 2021-06-04 12:03:13 发布