Google
[TEST]代表搜索关键字关键字,
谷歌搜索:http://www.google.com.hk/search?hl=zh-CN&source=hp&q=TEST
百度搜索:http://www.baidu.com/s?wd=TEST
百度贴吧:http://tieba.baidu.com/f?kw=TEST
百度图片:http://image.baidu.com/i?ct=201326592&&word=TEST
百度音乐:http://mp3.baidu.com/m?tn=baidump3&ct=134217728&lm=-1&word=TEST
狗狗搜索:http://www.gougou.com/search?search=TEST
优酷搜索:http://www.soku.com/v?keyword=TEST
必应搜索:http://cn.bing.com/search?q=TEST
土豆搜索:http://so.tudou.com/isearch/TEST
有道搜索:http://www.youdao.com/search?q=TEST

官方自定义代码设置:http://www.google.com/cse/?hl=zh-cn
百度官方提供:http://www.baidu.com/search/freecode.html

Google谷歌

<form method=get action=”http://www.google.com/search“>
<table Googlebgcolor=”#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>
在新窗口打开设置 在第一段代码<FORM 标签里添加 target=_blank>

Baidu百度<form action=”http://www.baidu.com/baidu” target=”_blank”>
<div align=”center”>
<input name=tn type=hidden value=baidu>
<a href=”http://www.baidu.com/”><img src=”http://img.baidu.com/search/img/baidulogo_clarity_80_29.gif” alt=”Baidu” align=”bottom” border=”0″></a>
<input type=text name=word size=30>
<input type=”submit” value=”百度搜索”>
</div>
</form>

迅雷狗狗

<form action=”http://www.gougou.com/search” target=”_blank” method=”get”>
<div align=”center”>
<a href=”http://www.gougou.com/”>
<img border=”0″ src=”http://www.gougou.com/images/all.gif” width=”242″ height=”72″></a></div>
<div align=”center”>
<font size=”2″>&nbsp;</font></div>
<div align=”center”>
<input type=text name=”search” size=30>
</div>
<div align=”center”>
</div>
<div align=”center”>
<input type=”submit” value=”狗狗搜索”>
</div>
</form>

<!–Google站内搜索开始–>
<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=ie value=GB2312>
<input type=hidden name=oe value=GB2312>
<input type=hidden name=hl value=zh-CN>
<input type=hidden name=domains value=”http://hi.baidu.com/itwi”>
<input type=hidden name=sitesearch value=”http://hi.baidu.com/itwi”>
</form>
<!–Google站内搜索结束–>

<!–Baidu站内搜索开始–>
<form action=”http://www.baidu.com/baidu”>
<input type=text name=word>
<input type=”submit” value=”Baidu 搜索”>
<input name=tn type=hidden value=”bds”>
<input name=cl type=hidden value=”3″>
<input name=ct type=hidden value=”2097152″>
<input name=si type=hidden value=”http://hi.baidu.com/itwi”>
</form>
<!–Baidu站内搜索结束–>

<!–Yahoo站内搜索开始–>
<form action=”http://www.yahoo.com.cn/search”>
<input type=text name=”p”>
<input type=”submit” value=”Yahoo 搜索”>
<input type=hidden name=vs value=”http://hi.baidu.com/itwi”>
</form>
<!–Yahoo站内搜索结束–>

  下面是Google和百度的Javascript版的站内搜索代码:

<!–Google站内搜索开始–>
<script type=”text/javascript”>
function googlesearch () {
var wq=document.getElementsByName(“wq”)[0].value;
var link=”http://www.google.com/search?domains=www.williamlong.info&sitesearch=http://hi.baidu.com/itwi&q=”+wq;
window.open(link); }
</script>
<input type=”text” name=”wq”/><input type=”submit” onclick=”javascript:googlesearch()” value=”Google 搜索” />
<!–Google站内搜索结束–>

<!–Baidu站内搜索开始–>
<script language=”javascript”>
function baidusearch () {
var wd=document.getElementsByName(“wd”)[0].value;
var link=”http://www.baidu.com/s?si=http://hi.baidu.com/itwi&cl=3&ct=2097152&tn=baidulocal&word=”+wd;
window.open(link); }
</script>
<input type=”text” name=”wd”/><input type=”submit” onclick=”javascript:baidusearch()” value=”Baidu 搜索” />
<!–Baidu站内搜索结束–>