Google,baidu免费搜索代码

来源:互联网 发布:sql 生成java代码 编辑:程序博客网 时间:2024/06/10 22:38

您的网站也想拥有 Google 为您定制的搜索引擎吗?将以下代码插入到您的网页中即可实现:

1.

<!-- Search Google -->
<center>
<form method=get action="http://www.google.com/search">
<table bgcolor="#FFFFFF"><tr><td>
<a href="http://www.google.com/intl/zh-CN/">
<img src="http://www.google.com/logos/Logo_40wht.gif"
border="0" alt="Google" align="absmiddle"></a>
<input type=text name=q size=31 maxlength=255 value="">
<input type=hidden name=ie value=GB2312>
<input type=hidden name=oe value=GB2312>
<input type=hidden name=hl value=zh-CN>
<input type=submit name=btnG value="Google 搜索">
</td></tr></table>
</form>
</center>
<!-- Search Google --> 

2.

<!-- SiteSearch Google -->
<form method=get action="http://www.google.com/search">
<table bgcolor="#FFFFFF"><tr><td>
<a href="http://www.google.com/">
<img src="http://www.google.com/logos/Logo_40wht.gif"
border="0" alt="Google"></a>
</td>
<td>
<input type=text name=q size=31 maxlength=255 value="">
<input type=hidden name=ie value=GB2312>
<input type=hidden name=oe value=GB2312>
<input type=hidden name=hl value=zh-CN>
<input type=submit name=btnG value="Google 搜索">
<font size=-1>
<input type=hidden name=domains value="YOUR DOMAIN NAME"><br>
<input type=radio name=sitesearch value=""> 搜索WWW
<input type=radio name=sitesearch value="YOUR DOMAIN NAME" checked> 搜索YOUR DOMAIN NAME
</font>
</td></tr></table>
</form>
<!-- SiteSearch Google -->

3.baidu

1)

<table width=90% border=0 align="center" cellpadding=3 cellspacing=0>
  <form action=http://www.baidu.com/s><input type=hidden name=tn value=sitesowang>
<tr><td width=985><input type=hidden name=cl value=3><input
type=hidden name=rn value=10><input type=hidden name=ct value=0><input
type=hidden name=lm value=0></td></tr><tr  ><td height="40" bgcolor="#F0F7FF"><a href=http://d.baidu.com/index.php?tn=sitesowang><img
src=http://www.hao123.com/logox.gif width=53 height=16 border=0></a>
                  <input type=text name=word
size=19 onMouseOver=this.focus() onFocus=this.select()
onClick=if(this.value=='这里输入关键字')this.value=''> <input type=submit
value=搜索>
            </td>
        </tr></form></table>

2)

<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=sitesowang&cv=1&cid=316&csid=102&rkcs=5&bgcr=FFFFFF&ftcr=000000&rk=0&bd=1&bdas=0">
</iframe>