下面是内存溢出 jb51.cc 通过网络收集整理的代码片段。
内存溢出小编现在分享给大家,也给大家做个参考。
<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 > <select name=sq size=1 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 tabindex=2> </td> <td wIDth="33%" align="center" height="32"> <input name=search 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>04function sch(form){05e=document.sel.sq.selectedindex; //取选定选项的编号06e=document.sel.sq[e].value; //取选定选项的"value"特征值07k=document.sel.k.value; //取搜索关键字08if(document.sel.k.value==""){ //如果没有填入关键字09alert("请输入关键词!"); //则给出提示10document.sel.k.focus(); //将光标移到输入框11return12}13//以下根据选择的内容改变window.location属性,进行本窗口导航14if(e=="yah1"){location="http://search.chinese.yahoo.com/search/gb?p="+k;}15if(e=="yah"){location="http://search.yahoo.com/bin/search?p="+k;}16if(e=="soh1"){location="http://search.sohu.com/cgi-bin/search_main.cgi?txt_keyword="+k+"&page_index=0&catagory=main"}17if(e=="tonghua"){location="http://search.tonghua.com.cn/search?p="+k;}18if(e=="yo1"){location="http://www.goyoyo.com.cn/gyy/guIDe/gquery%20GB%20"+k+"?"}19if(e=="srsnet"){location="http://www.xibaonpx.com/richina.cgi?query="+k;}20if(e=="网易"){location="http://www.xibaonpx.com/cgi-bin/search.cgi?key="+k;}21if(e=="whatsite"){location="http://www.xibaonpx.com/main/search.cgi?keyword="+k+"&start=0&REXP=OR&x=36&y=15"}22if(e=="kimo"){location="http://search.kimo.com.tw/cgi-bin/srchfz.pl?srchcdn=B0&query="+k+"&x=22&y=9"}23if(e=="yam"){location="http://www.yam.com.tw/b5/search?k="+k+"&x=9&y=18"}24if(e=="excite"){location="http://search.excite.com/search.gw?search="+k;}25if(e=="cei"){location="http://infonavi.cei.gov.cn/cgi-bin/searchs.dll?OptionSearchs?Key="+k;}26if(e=="ztw"){location="http://search.bj.cninfo.net/go/infoseek?keyword="+k;}27if(e=="xlw"){location="http://search.sina.com.cn/cgi-bin/search/search.cgi?_searchkey="+k;}28if(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 >48 <select name=sq size=1 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 tabindex=2>68 </td>69 <td wIDth="33%" align="center" height="32">70 <input name=search 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>
以上是内存溢出(jb51.cc)为你收集整理的全部代码内容,希望文章能够帮你解决所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
总结以上是内存溢出为你收集整理的JS实现的搜索引擎切换代码全部内容,希望文章能够帮你解决JS实现的搜索引擎切换代码所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)