我在一些网站上看到一些搜索的引擎,它里面有很多知名网站的选择.有雅虎的,还有很多其他知名网站搜索综合在一起的,请问他们是怎么搞的,怎么连接的,谢谢!
转自百度大全
搜索引擎由四部分组成:蜘蛛程序、监控程序、索引数据库、检索程序。
门户网站只需将用户查询内容和一些相关参数传递到搜索引擎服务器上,后台程序就会自动工作并将最终结果返回给网站。
搜索引擎使用了高性能的“网络蜘蛛”程序自动的在互联网中搜索信息,可定制、高扩展性的调度算法使得搜索器能在极短的时间内收集到最大数量的互联网信息。
hao123拿过来的..
<script>
function search4()
{
if(form1.abc0.checked)
window.open("http://search.sina.com.cn/cgi-bin/search/search.cgi?_searchkey="+form1.key.value,"mspg0");
if(form1.abc1.checked)
window.open("http://site.search.sohu.com/sitesearch.jsp?page_index=0&key_word="+form1.key.value,"mspg1");
if(form1.abc2.checked)
window.open("http://cn.search.yahoo.com/search/cn?p="+form1.key.value,"mspg2");
if(form1.abc3.checked)
window.open("http://www.skycn.com/search.php?sor=00&ss_name="+form1.key.value,"mspg3");
if(form1.abc4.checked)
window.open("http://www.google.com/search?hl=zh-CN&lr=lang_zh-CN&q="+form1.key.value,"mspg4");
if(form1.abc5.checked)
window.open("http://search.yahoo.com/bin/search?p="+form1.key.value,"mspg5");
if(form1.abc6.checked)
window.open("http://www.baidu.com/baidu?tn=sitehao123&word="+form1.key.value,"mspg6");
if(form1.abc7.checked)
window.open("http://mp3search.baidu.com/wstsearch?tn=baidump3&ct=134217728&lm=-1&rn=&word="+form1.key.value,"mspg7");
if(form1.abc8.checked)
window.open("http://search.sogua.com/search/search.asp?fmp3=1&frm=1&fwma=1&fasf=1&go.x=25&go.y=19&key="+form1.key.value,"mspg8");
if(form1.abc9.checked)
window.open("http://mp3search.baidu.com/wstsearch?tn=baidump3lyric&ct=150994944&lm=-1&rn=&word="+form1.key.value,"mspg9");
if(form1.abc10.checked)
window.open("http://pic.sina.com.cn/cgi-bin/retr/search?query="+form1.key.value,"mspg10");
if(form1.abc11.checked)
window.open("http://www.baidu.com/i?ct=201326592&cl=2&lm=-1&tn=baiduimage&word="+form1.key.value,"mspg11");
if(form1.abc12.checked)
window.open("http://bingle.pku.edu.cn/scripts/ftp_search.exe?cdtype=GB&word="+form1.key.value,"mspg12");
if(form1.abc13.checked)
window.open("http://flash.baidu.com/wstsearch?tn=flash&sort=time&rn=10&pn=0&cl=3&f=8&ct=33554432&word="+form1.key.value,"mspg13");
if(form1.abc14.checked)
window.open("http://cns.3721.com/cns.dll?fw=1&name="+form1.key.value,"mspg14");
return false;
}
</script>
<div align="center"><center>
<table border="1" cellspacing="0" width="730" height="64" bordercolor="#99DF95"
bgcolor="#F0F7FF" cellpadding="0">
<tr>
<td width="730" height="3"><p align="center">综合搜索<a href="search.htm"
target="_self">引擎</a></td>
</tr>
<tr>
<td width="730" height="50"><form name="form1" onsubmit="return(search4())">
<div align="center"><center><p>请输入关键字:<input type="text" name="key" size="15">
<input type="submit" style="COLOR:" rgb(0,0,0); FONT-SIZE: 9pt value="搜索" name="B2"> <input
type="checkbox" name="abc0" value="sina"><a href="ss/sina.htm">新浪</a> <input
type="checkbox" name="abc1" value="sohu"><a href="ss/sohu.htm">搜狐</a> <input
type="checkbox" name="abc2" value="yahoo"><a href="ss/cnyahoo.htm">雅虎</a> <input
type="checkbox" name="abc3" value="yeah"><a href="ss/soft.htm">软件</a> <input
type="checkbox" name="abc4" value="3721" checked><a href="ss/google.htm">google</a> <input
type="checkbox" name="abc5" value="yahooe"><a href="ss/yahoo.htm">Yahoo</a> <input
type="checkbox" name="abc6" value="google" checked><a href="ss/baidu.htm">百度</a> <input
type="checkbox" name="abc7" value="baidump3"><a href="mp3s.htm">百度mp3</a><input type="checkbox" name="abc8"
value="baidump3"><a href="ss/souga.htm">搜刮mp3</a> <input type="checkbox" name="abc9"
value="baidump3">歌词 <input type="checkbox" name="abc10" value="baidump3"><a
href="ss/sinapic.htm">新浪图片</a> <input type="checkbox" name="abc11"
value="baidump3"><a href="ss/baidupic.htm">百度图片</a> <input type="checkbox"
name="abc12" value="baidump3"><a href="ss/sky.htm">天网搜索</a> <input
type="checkbox" name="abc13" value="baidump3"><a href="ss/flashbaidu.htm">FLASH</a> <input
type="checkbox" name="abc14" value="baidump3"><a href="ss/3721.htm">3721</a></p>
</center></div>
</form>
</td>
</tr>
</table>