当前位置:首页
开发技术指南» 文章正文
    引言:
 

 

 ·高手:怎么把数据包加密    »显示摘要«
    摘要: 我有一个数据库,想把它通过邮件发送给另外一个机器,我想把它给加密,加上数字签名,以防被窃取,等传过来以后,那边的机器可以通过一个程序来验证数据包有没有被修改. 这方面的控件什么地方有啊? ......
 ·头痛的问题谁知道快告诉我    »显示摘要«
    摘要: 当拖动一个带有标题数据窗口到目标位置,这个过程有没有可触发的事件, 例如:拖动数据窗口的标题到目标位置,这时st_1马上显示此数据窗口的坐标 ......


百度挺闹心,有兴趣的来看看,我的问题很简单,也很实用,等待答案ING....

如何在自己的index上把百度的搜索形式变成这个样子?  
   
  |--------------|     |-----------|     |----|  
  |       关键字           |     |     下拉菜单   |     |搜索|  
  |--------------|     |-----------|     |----|  
   
  PS:下拉菜单里分别有网页、MP3和FLASH的选项。好了,我想大家明白我的意思了。  
  怎么做呢?请大家帮个忙了,给个代码,谢谢。  
 

NO.1   作者: wanghr100

做得有点粗糙....   不过,还是可以用的.  
   
  <table   width="95%"   border="0"   cellspacing="0"   cellpadding="0">  
      <tr>  
          <td>  
              <form   name=form1   onsubmit=JavaScript:doc=document.form1.search.value;if(doc=="网页"){document.form1.cl.value="3";document.form1.action="http://www1.baidu.com/baidu";document.form1.target="_blank";}if(doc=="FLASH"){document.form1.tn.value="flash";document.form1.cl.value="3";document.form1.f.value="8";document.form1.ct.value="33554432";document.form1.action="http://flash.baidu.com/wstsearch";document.form1.target="_blank";}if(doc=="MP3"){document.form1.tn.value="baidump3";document.form1.ct.value="134217728";document.form1.lm.value="-1";document.form1.action="http://mp3search.baidu.com/wstsearch";document.form1.target="_blank";}return   true;}   method=get   target=_blank>  
                  <p   align="center">    
                      <input   type=hidden   name=tn>  
                      <input   type=hidden     name=ct>  
                      <input   type=hidden     name=lm>  
                      <input   type=hidden     name=cl>  
                      <input   type=hidden     name=f>  
                      <input   type="text"   size=20   name="word">  
                      <select   name="search">  
                          <option   value="网页">网页</option>  
                          <option   value="FLASH">FLASH</option>  
                          <option   value="MP3">MP3</option>  
                      </select>  
                      <input   type="submit"   name="Submit"   value="灰豆宝宝搜索">  
                  </p>  
                  <p>&nbsp;   </p>  
              </form>  
          </td>  
      </tr>  
  </table>  
   
  把代码COPY,另存为.html就可以了啦.  
   
  我已经测试成功了..


 ·请介绍几个com学习的地方    »显示摘要«
    摘要: 请介绍几个com学习的地方 ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE