谁有综合的搜索引擎代码?要做工精细地
发布网友
发布时间:2022-04-29 10:26
我来回答
共1个回答
热心网友
时间:2022-06-26 04:39
现在很多网站上可一以找到的,我给你提供个吧,
<table style="border:0px solid #CCCCCC;width:100%;background-color:#FFFFFF" border="0" cellspacing="0" cellpadding="0" >
<tr>
<td style="font-size:12px"><div align="center">
<FORM name=websearch onsubmit=return(search4())>
<script>
function search4()
{
if(websearch.google.checked)
window.open("http://www.google.com/search?hl=zh-CN&inlang=zh-CN&ie=GB2312&oe=GB2312&q="+websearch.key.value,"mspg6");
if(websearch..checked)
window.open("http://www1.baidu.com/?tn=haofa&word="+websearch.key.value,"mspg9");
if(websearch.sina.checked)
window.open("http://search.sina.com.cn/cgi-bin/search/search.cgi?_searchkey="+websearch.key.value,"mspg0");
if(websearch.sohu.checked)
window.open("http://www.sogou.com/websearch/corp/search.jsp?query="+websearch.key.value+"&searchtype=1&pid=k688&class=1&cpc=SOGOU","mspg1");
if(websearch.yahoo.checked)
window.open("http://www.yisou.com/search?p="+websearch.key.value,"mspg2");
if(websearch.yeah.checked)
window.open("http://cha.so.163.com/psearch.php?q="+websearch.key.value,"mspg3");
if(websearch.sqey.checked)
//window.open("http://cns.3721.com/cns.dll?argse=new3721&fw=home&p="+websearch.key.value,"mspg5");
window.open("http://search.union.3721.com/click/search.htm?fw=union&m=44822&p=1006&name="+websearch.key.value,"mspg5");
return false;
}
</script>
<a href="http://www.k688.com/" target="_blank" style=font-size:9pt;TEXT-DECORATION:none>关键字:</a>
<Input size=18 name=key value="游戏">
<Input type=submit value=搜索 name=submit>
<Input style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" type=checkbox CHECKED value= name=>
<A href="http://d.baidu.com/index.php?tn=haofa" target=_blank style=font-size:9pt;TEXT-DECORATION:none>百度</A>
<Input style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" type=checkbox value=google name=google>
google
<Input style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px " type=checkbox value=yahoo name=yahoo>
一搜
<Input style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" type=checkbox value=sina name=sina>
新浪
<Input style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" type=checkbox CHECKED value=sohu name=sohu>
搜狐
<Input style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" type=checkbox value=yeah name=yeah>
网易
<Input style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" type=checkbox value=sqey name=sqey>
3721</form>
</div></td>
</tr>
</table>
这个代码包含了百度,Google,一搜,新浪,搜狐,网易这几个搜索引擎,应该够你用的吧!
还有一款不错的你也可以考虑下:
<div align="center">
<!--Begin of Search 一搜/百度 -->
<form Name="InputForm">
<p align="center">
<script language="JavaScript">
var FirstForm;
function StartSearch()
{
document.forms[FirstForm+document.InputForm.SearchSelect.
selectedIndex].elements[0].value=document.InputForm.SearchWords.value;
document.forms[FirstForm+document.InputForm.SearchSelect.
selectedIndex].submit();
}
</script>
<input name="SearchWords" type="text" value="要搜索的内容" size="15" style=" margin-left: 1px" style="background-color: #Ffffff; color: #639ace" onfocus="if (this.value == '集英社') this.value = '';" />
<select Name="SearchSelect" size="1" style="background-color: #ffffff; color: #639ace">
<option value="百度搜索">百度搜索</option>
<option value="Google">Google</option>
<option value="一搜搜索">一搜搜索</option>
<option value="新浪爱问">新浪爱问</option>
<option value="搜狐搜索">搜狐搜索</option>
</select>
<input type="button" value="‖搜索‖" onClick="StartSearch()">
<script language="JavaScript">
FirstForm=document.forms.length
</script>
</form>
<form method="get" action="http://www.baidu.com/s" target="_blank">
<input type="hidden" name="word" value>
<input type=hidden name=f value=ms>
<input type=hidden name=rn>
<input type=hidden name=tn value=site>
</form>
<form method="get" action="http://www.google.com/search" target="_blank">
<input type="hidden" name="q" value>
<input type=hidden name=ie value=GB2312>
<input type=hidden name=oe value=GB2312>
<input type=hidden name=hl value=zh-CN>
</form>
<form method="get" action="http://www.yisou.com/search.html" target="_blank">
<input type="hidden" name="p" value>
</form>
<form method="get" action="http://www.iask.com/s" target="_blank">
<input type="hidden" name="k" value>
</form>
<form method="get" action="http://www.sogou.com/sohu" target="_blank">
<input type="hidden" name="query" value>
</form>
</div>