JS实现的搜索引擎切换代码

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

<head> 
<SCRIPT language=JavaScript> 
function sch(form){ 
e=document.sel.sq.selectedIndex; //取选定选项的编号 
e=document.sel.sq[e].value; //取选定选项的"value"特征值 
k=document.sel.k.value; //取搜索关键字 
if(document.sel.k.value==""){ //如果没有填入关键字 
alert("请输入关键词!"); //则给出提示 
document.sel.k.focus(); //将光标移到输入框 
return 
} 
//以下根据选择的内容改变window.location属性,进行本窗口导航 
if(e=="yah1"){location="http://search.chinese.yahoo.com/search/gb?p="+k;} 
if(e=="yah"){location="http://search.yahoo.com/bin/search?p="+k;} 
if(e=="soh1"){location="http://search.sohu.com/cgi-bin/search_main.cgi?txt_keyword="+k+"&page_index=0&catagory=main"} 
if(e=="tonghua"){location="http://search.tonghua.com.cn/search?p="+k;} 
if(e=="yo1"){location="http://www.goyoyo.com.cn/gyy/guide/gquery%20GB%20"+k+"?"}
if(e=="srsnet"){location="http://www.xibaonpx.com/richina.cgi?query="+k;} 
if(e=="网易"){location="http:// www.xibaonpx.com /cgi-bin/search.cgi?key="+k;} 
if(e=="whatsite"){location="http:// www.xibaonpx.com /main/search.cgi?keyword="+k+"&start=0&REXP=OR&x=36&y=15"} 
if(e=="kimo"){location="http://search.kimo.com.tw/cgi-bin/srchfz.pl?srchcdn=B0&query="+k+"&x=22&y=9"} 
if(e=="yam"){location="http://www.yam.com.tw/b5/search?k="+k+"&x=9&y=18"} 
if(e=="excite"){location="http://search.excite.com/search.gw?search="+k;} 
if(e=="cei"){location="http://infonavi.cei.gov.cn/cgi-bin/searchs.dll?OptionSearchs?Key="+k;} 
if(e=="ztw"){location="http://search.bj.cninfo.net/go/infoseek?keyword="+k;} 
if(e=="xlw"){location="http://search.sina.com.cn/cgi-bin/search/search.cgi?_searchkey="+k;} 
if(e=="ssk"){location="http://www.cseek.com/cgi/srchengine.cgi?searchcgi=http%3A%2F%2Fwww.cseek.com%2Fhomepage%2Fcgi%2F&all=yes&sortby=1&searchkey="+k;} } 
</SCRIPT> 


<title>JS实现的搜索引擎切换代码_济南银屑病医院( www.xibaonpx.com )</title> 
</head> 


<body> 
<form action=javascript:sch(this.form) method=post name=sel> 
<table bgcolor=#c0c0c0 border=1 bordercolordark=#ffffff bordercolorlight=#000000 cellpadding=2 cellspacing=0 width="400" bordercolor="#FFFFFF" height="52"> 
 <tbody>  
  <tr>  
   <td width="100%" colspan="3" height="16">  
    <font size="2">搜索引擎一网打尽——</font> 
   </td> 
  </tr> 
  <tr>  
   <td width="34%" align="center" height="32">  
    <font style="FONT-SIZE: 9pt"> 
    <select name=sq size=1 style="FONT-FAMILY: 宋体; FONT-SIZE: 9pt" tabindex=1>
    <option selected value=yah1>中文Yahoo</option> 
    <option value=soh1>搜狐</option> 
    <option value=网易>网易搜索</option> 
    <option value=tonghua>常青藤</option> 
    <option value=xlw>新浪网</option> 
    <option value=ssk>搜索客</option> 
    <option value=ztw>中国多媒体</option> 
    <option value=yo1>悠游</option> 
    <option value=whatsite>哇塞big5</option> 
    <option value=kimo>奇摩big5</option> 
    <option value=yam>蕃薯藤big5</option> 
    <option value=yah>英文Yahoo</option> 
    <option value=excite>英文excite</option> 
    <option value=cei>CEI搜索器</option> 
    </select> 
    </font> 
   </td> 
   <td width="33%" align="center" height="32">  
    <input name=k size=14 style="font-family: 宋体; font-size: 9pt; border: 1 solid #000000" tabindex=2> 
   </td> 
   <td width="33%" align="center" height="32">  
    <input name=search style="font-family: 宋体; font-size: 9pt; background-color: #FFFFFF; border: 1 solid #000000" tabindex=3 type=submit value=' 开始搜索 '> 
   </td> 
  </tr> 
 </tbody> 
</table> 
</form> 
<br /> 
<p><a href="http://www.xibaonpx.com"> 济南银屑病医院 </a> - 最专业的网页代码下载网站 - 致力为中国站长提供有质量的网页代码!</p> 
</body> 
</html> 
代码片段(1)

[代码] [PHP]代码

01
<html>
02
<head>
03
<SCRIPT language=JavaScript>
04
function sch(form){
05
e=document.sel.sq.selectedIndex;    //取选定选项的编号
06
e=document.sel.sq[e].value; //取选定选项的"value"特征值
07
k=document.sel.k.value;  //取搜索关键字
08
if(document.sel.k.value==""){   //如果没有填入关键字
09
alert("请输入关键词!");    //则给出提示
10
document.sel.k.focus();  //将光标移到输入框
11
return
12
}
13
//以下根据选择的内容改变window.location属性,进行本窗口导航
14
if(e=="yah1"){location="http://search.chinese.yahoo.com/search/gb?p="+k;}
15
if(e=="yah"){location="http://search.yahoo.com/bin/search?p="+k;}
16
if(e=="soh1"){location="http://search.sohu.com/cgi-bin/search_main.cgi?txt_keyword="+k+"&page_index=0&catagory=main"}
17
if(e=="tonghua"){location="http://search.tonghua.com.cn/search?p="+k;}
18
if(e=="yo1"){location="http://www.goyoyo.com.cn/gyy/guide/gquery%20GB%20"+k+"?"}
19
if(e=="srsnet"){location="http://www.xibaonpx.com/richina.cgi?query="+k;}
20
if(e=="网易"){location="http://www.xibaonpx.com/cgi-bin/search.cgi?key="+k;}
21
if(e=="whatsite"){location="http://www.xibaonpx.com/main/search.cgi?keyword="+k+"&start=0&REXP=OR&x=36&y=15"}
22
if(e=="kimo"){location="http://search.kimo.com.tw/cgi-bin/srchfz.pl?srchcdn=B0&query="+k+"&x=22&y=9"}
23
if(e=="yam"){location="http://www.yam.com.tw/b5/search?k="+k+"&x=9&y=18"}
24
if(e=="excite"){location="http://search.excite.com/search.gw?search="+k;}
25
if(e=="cei"){location="http://infonavi.cei.gov.cn/cgi-bin/searchs.dll?OptionSearchs?Key="+k;}
26
if(e=="ztw"){location="http://search.bj.cninfo.net/go/infoseek?keyword="+k;}
27
if(e=="xlw"){location="http://search.sina.com.cn/cgi-bin/search/search.cgi?_searchkey="+k;}
28
if(e=="ssk"){location="http://www.cseek.com/cgi/srchengine.cgi?searchcgi=http%3A%2F%2Fwww.cseek.com%2Fhomepage%2Fcgi%2F&all=yes&sortby=1&searchkey="+k;} }
29
</SCRIPT>
30
 
31
 
32
<title>JS实现的搜索引擎切换代码_济南银屑病医院(www.xibaonpx.com)</title>
33
</head>
34
 
35
 
36
<body>
37
<form action=javascript:sch(this.form) method=post name=sel>
38
<table bgcolor=#c0c0c0 border=1 bordercolordark=#ffffff bordercolorlight=#000000 cellpadding=2 cellspacing=0 width="400" bordercolor="#FFFFFF" height="52">
39
 <tbody>
40
  <tr>
41
   <td width="100%" colspan="3" height="16">
42
    <font size="2">搜索引擎一网打尽——</font>
43
   </td>
44
  </tr>
45
  <tr>
46
   <td width="34%" align="center" height="32">
47
    <font style="FONT-SIZE: 9pt">
48
    <select name=sq size=1 style="FONT-FAMILY: 宋体; FONT-SIZE: 9pt" tabindex=1>
49
    <option selected value=yah1>中文Yahoo</option>
50
    <option value=soh1>搜狐</option>
51
    <option value=网易>网易搜索</option>
52
    <option value=tonghua>常青藤</option>
53
    <option value=xlw>新浪网</option>
54
    <option value=ssk>搜索客</option>
55
    <option value=ztw>中国多媒体</option>
56
    <option value=yo1>悠游</option>
57
    <option value=whatsite>哇塞big5</option>
58
    <option value=kimo>奇摩big5</option>
59
    <option value=yam>蕃薯藤big5</option>
60
    <option value=yah>英文Yahoo</option>
61
    <option value=excite>英文excite</option>
62
    <option value=cei>CEI搜索器</option>
63
    </select>
64
    </font>
65
   </td>
66
   <td width="33%" align="center" height="32">
67
    <input name=k size=14 style="font-family: 宋体; font-size: 9pt; border: 1 solid #000000" tabindex=2>
68
   </td>
69
   <td width="33%" align="center" height="32">
70
    <input name=search style="font-family: 宋体; font-size: 9pt; background-color: #FFFFFF; border: 1 solid #000000" tabindex=3 type=submit value=' 开始搜索 '>
71
   </td>
72
  </tr>
73
 </tbody>
74
</table>
75
</form>
76
<br />
77
<p><a href="http://www.dzqsc.com">章丘黑石材</a> -章丘黑,章丘灰,等各类装饰石材一手经销商 </p>
78
</body>
79
</html>