<script language="javascript" type="text/javascript">
function gsearch(key,evt,site)
{
if(evt.keyCode==13 || evt.keyCode==0 || evt.type =='click')
{
if(key.value == "")
return false;
key.focus();
var keystr = encodeURIComponent(key.value);
url = "http://www.google.com/search?q=";
url = url+keystr;
url += "&ie=UTF-8&oe=GB2312&hl=zh-CN&domains="+site+"&sitesearch="+site;
//window.location=url;
window.open(url);
return false;
}
}
</script>
<div class="ascout_jyqh_search" style="float: right">
<input type="text" id="txtKeyWord" value="请输入关键字..." class="ascout_jyqh_searchtxt"
οnclick="this.value=''" οnkeydοwn="return gsearch(document.getElementById('txtKeyWord'),event,'www.jyqh.com.cn')"
οnblur="this.value!=''?null:this.value=''" οnfοcus="this.value==''?this.value='':null"
size="12" name="txtKeyWord" />
<input type="button" name="button2" id="btnSearch" value="" class="ascout_jyqh_searchbtn"
οnclick="gsearch(document.getElementById('txtKeyWord'),event,'e.fx168.com');" />
</div>
这边搜索e.fx168.com站点下的关键字 通过谷歌搜索引擎搜索