单相交流电机启动电容:帮我看段集成搜索代码!谢谢拉

来源:百度文库 编辑:查人人中国名人网 时间:2024/04/30 10:37:08
这段代码在选择最后2个时,老搜新浪的.

<script><!--
function so(){for(var i=0;i<5;i++)
{if(f.lr[i].checked)break;}var url;if(i==0)

url="http://www.baidu.com/s?wd="+f.q.value;
else if(i==1) url="http://www.google.com/search?hl=zh-

CN&q="+f.q.value;
else if(i==2)url="http://www.yahoo.com.cn/search?p="+f.q.value;
else if(i==3)url="http://www.sogou.com/web?query="+f.q.value;
else if(i==4)url="http://page.so.163.com/psearch.php?q="+f.q.value;
else if(i==5)url="http://iask.com/w?k="+f.q.value;
else if(i==7)url="http://www.soso.com/q?w="+f.q.value;
else if(i==8)url="http://p.zhongsou.com/p?word=%CE%DE%BC%

AB&dt=1&w="+f.q.value;
window.open(url);return false;}//--></SCRIPT>

</head><td width="70%" height="64"><form name=f onsubmit=return(so())>
<input maxlength="70" size="40" name="q" s="font-

size:16px;color:#000000;height:25;line-height:110%;padding-

top:3px;PADDING-LEFT:2px;border:1px solid gray;; float:right"></td>
<td width="18%" height="64"> <input name="submit" type="submit"

s="width:95px;height:26px;cursor: pointer;" value="搜 索">
</td>
<td width="12%" height="64"><font size="2"><a

href="../qita/jiqiao.htm">搜索帮助</a></font></td></tr><tr><br>
<td colspan=3 align=center>
<input id=a1 type=radio name=lr checked><label for=a1><font size="2">

百度 </font></label>
<input id=a2 type=radio name=lr><label for=a2><font

size="2">Google </font></label>
<input id=a3 type=radio name=lr><label for=a3><font size="2">雅虎

 </font></label>
<input id=a4 type=radio name=lr><label for=a4><font size="2">搜狗

 </font></label>
<input id=a5 type=radio name=lr><label for=a5><font size="2">网易

</font></label>
<input id=a6 type=radio name=lr><label for=a6><font size="2">新浪

 </font></label>
<input id=a7 type=radio name=lr><label for=a7><font size="2">搜搜

 </font></label>
<input id=a8 type=radio name=lr><label for=a8><font size="2">中搜

</font></label>
换成6也不行哦

url="http://www.baidu.com/s?wd="+f.q.value;
else if(i==1) url="http://www.google.com/search?hl=zh-

CN&q="+f.q.value;
else if(i==2)url="http://www.yahoo.com.cn/search?p="+f.q.value;
else if(i==3)url="http://www.sogou.com/web?query="+f.q.value;
else if(i==4)url="http://page.so.163.com/psearch.php?q="+f.q.value;
else if(i==5)url="http://iask.com/w?k="+f.q.value;
else if(i==7)url="http://www.soso.com/q?w="+f.q.value;
else if(i==8)url

中间有个6怎么不见了????

再看看,可能是判断的时候出了问题/