搜索栏的实现(JS)



<table cellspacing="0" cellpadding="0" width="768" align="center" border="0">
   <tbody>
    <tr>
     <td>
      <table class="wordbreak" cellspacing="6" cellpadding="0" width="768" align="center" border="0">
       <tr>
        <td valign="top" width="100%" bgcolor="#ffffff">
         <!-- Search begin -->
         <script>
         function search5()
         {
          if(form1.abc4.checked)
          window.open("http://www.iask.com/s?k="+form1.key.value,"mspg4");
          if(form1.abc5.checked)
          window.open("http://www.sogou.com/web?sogouhome=&shuru=shou&query="+form1.key.value,"mspg5");
          if(form1.abc3.checked)
          window.open("http://cn.search.yahoo.com/search?p="+form1.key.value,"mspg3");
          if(form1.abc2.checked)
          window.open("http://www.google.com/search?hl=zh-CN&inlang=zh-CN&ie=GB2312&oe=GB2312&q="+form1.key.value,"mspg2");
          if(form1.abc1.checked)
          window.open("http://www.baidu.com/s?tn=thws&word="+form1.key.value,"mspg1");
          return false;
         }
         </script>
         <form name="form1" οnsubmit="return(search5())">
          <input οnmοuseοver="this.select()" maxlength="50" size="38" value="浮动窗口代码" name="key">
          <input type="hidden" value="GB2312" name="ie"> <input type="hidden" value="GB2312" name="oe">
          <input type="hidden" value="zh-CN" name="hl"> <input type="image" src="go.gif" align="absBottom" name="B2" />
          <input type="checkbox" checked value="baidu" name="abc1"><a href="http://www.baidu.com/">百度</a>&nbsp;
          <input type="checkbox" value="google" name="abc2"><a href="http://www.google.com/intl/zh-CN/">google</a>
          <input type="checkbox" value="yahoo" name="abc3"><a href="http://cn.search.yahoo.com/web?&amp;ei=UTF-8">雅虎</a>&nbsp;
          <input type="checkbox" value="iask" name="abc4"><a href="http://www.iask.com/">爱问</a>&nbsp;
          <input type="checkbox" value="sohu" name="abc5"><a href="http://www.sogou.com/">搜狗</a>
         </form>
         <!-- Search end -->
        </td>
       </tr>
      </table>
    </tr>
  </table>

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值