<td align="right">
<script type="text/javascript">
function doClick(e)
{
var key;
if(window.event)
key = window.event.keyCode; //IE
else
key = e.which; //firefox
if (key == 13)
{
//Get the button the user wants to have clicked
var btn = document.getElementById("googleBtn");
if (btn != null)
{ //If we find the button click it
//btn.click();
googlesearch();
event.keyCode = 0
}
}
return false;
}
function googlesearch ()
{
var site="www.hzxltz.com";
var cof="GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:336699;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;FORID:1";
var searchText=document.getElementById("googleText").value;
//var link="http://www.google.com/search?domains=www.hzxltz.com&sitesearch=www.hzxltz.com&q="+searchText;
//var link="http://www.baidu.com/s?si=www.hzxltz.com&cl=3&ct=2097152&tn=baidulocal&word="+searchText;
var link = "http://www.google.cn/custom?&domains="+site+"&q=";
link = link+searchText;
link += "&sa=%CB%D1%CB%F7&sitesearch="+site +"&forid=1&ie=UTF-8&oe=GB2312&cof=" +cof+"&hl=zh-CN";
window.open(link);
return false;
}
</script>
<input type="text" onkeydown="doClick(event)" id="googleText" class="input"/> <input id="googleBtn" type="button" class="button" onclick="return googlesearch();" value="搜 索" />
</td>