http://www.baibook.net/new/
大家看看这个,是我做的壳子就差一个程序了

解决方案 »

  1.   

    <script>
    function go(){
     var sel1=document.getElementById("sel1").value;
     var txt1=document.getElementById("txt1").value;
     window.open(sel1+"?wen="+txt1+"&Submit2=%B2%E9%D1%AF","1")
    }
    </script>
    <body>
    <div id=div1>
    <select id="sel1">
    <option value="http://www.sto.cn/querybill/webform1.aspx">申通快递</option>
    <option value="http://www.google.com/">圆通快递</option>
    <option value="http://www.google.com/">中诚快递</option>
    </select>
    <input type="text" id="txt1" value="请输入单号" style="color:gray;" onclick="this.value='';this.style.color='#000000'">
    <input type="button" value="提交" onclick="go()">
    </div>
    </body>是这样的吧?
      

  2.   

    打开一个新窗口就是这样用open,会被拦载工具拦载弹出;在本窗口打开就改成:document.location.href=sel1+"?wen="+txt1+"&Submit2=%B2%E9%D1%AF"即可
      

  3.   

    申通的可以了
    但是当选择圆通快递的时候怎么弄呢?
    下面是查询圆通单号的连接
    http://www.yto56.net.cn/html/sql.asp?NumberText=e042462913&imageField.x=58&imageField.y=11上面给出的只有
    function go(){
     var sel1=document.getElementById("sel1").value;
     var txt1=document.getElementById("txt1").value;
     window.open(sel1+"?wen="+txt1+"&Submit2=%B2%E9%D1%AF","1")
      

  4.   

    就是选择不同的时候,申通的是window.open(sel1+"?wen="+txt1,"1")                 
                 圆通的是window.open(sel1+"?NumberText="+txt1,"1")
      

  5.   

    select的option里不同公司改不同的value值即可