增加Google谷歌搜索框
在网页中放置以下代码,将代码中的域名改为自已网站的域名即可。
<DIV class=search>
<form method=get action="http://www.google.com/search">
<input type=text name=q>
<input type=submit name=btnG value="Google!">
<input type=hidden name=domains value="/www.i85.cn">
<input type=hidden name=sitesearch value="/www.i85.cn">
</form>
<script type="text/javascript">
function googlesearch () {
var wq=document.getElementsByName("wq")[0].value;
var link="http://www.google.com/search?domains=www.i85.cn&sitesearch=www.i85.cn&q="+wq;
window.open(link); }
</script>
</DIV>
效果如下:




<DIV class=search>
<form method=get action="http://www.google.com/search">
<input type=text name=q>
<input type=submit name=btnG value="Google!">
<input type=hidden name=domains value="/www.i85.cn">
<input type=hidden name=sitesearch value="/www.i85.cn">
</form>
<script type="text/javascript">
function googlesearch () {
var wq=document.getElementsByName("wq")[0].value;
var link="http://www.google.com/search?domains=www.i85.cn&sitesearch=www.i85.cn&q="+wq;
window.open(link); }
</script>
</DIV>
效果如下:

