你这样去试试
----------------------------------------------
<script language="JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore)
     { //v3.0
        eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
        if (restore) selObj.selectedIndex=0;
    }
//-->
</script>
---------------------------------------------------
 <select name="menu1" onChange="MM_jumpMenu('self',this,0)">
          <option selected> </option>
          <option value="AA.php3" >aaaa</option>
          <option value="BB.php3">bbbb</option>
          <option value="CC.php3">cccc</option>
 </select>
-----------------------------------------------------
其实这是在dreamweaver里就可以实现的。呵呵!

解决方案 »

  1.   

    <HTML>
    <BODY> 
    <form onsubmit="return doSubmit(this, this.toPage)">
    <select name=toPage>
      <option value="aaa.php">aaa.php
      <option value="bbb.php">bbb.php
      <option value="ccc.php">ccc.php
    </select>
    <input type=submit value=submit>
    </form>
    <script language=JavaScript>
    function doSubmit(form, select)
    {
      form.action = select.options[select.selectedIndex].value;
      return true;
    }
    </script>
    </BODY>
    </HTML>给分吧!!!还有问题可以到http://www.ruted.com来问,我们努力有问必答!!!
      

  2.   

    我还是没有试成功啊?其实我写的是这样的:
    <html>
    <head>
    <META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
    <title>无标题文档</title>
    </head>
    <script language="JavaScript">
    function cc()
    {if (document.form1.Select1.value=1)
    {document.form1.action="http://www.artall.com"
    }
    else 
    {document.form1.action="http://www.sohu.com"
    }
    form1.submit;
    }</script>
    <body bgcolor="#FFFFFF" text="#000000">
    <form name="form1" method="post" >
      <select name="select1" id="select1" >
        <option value="1">supplier</option>
        <option value="2">etid</option>
      </select>
      <input type="text" name="textfield">
      <input type="button" name="aa" value="送出" onclick="cc()">
    </form>
    </body>
    </html>
    就是没反应!
      

  3.   

    注意我给你加*****的地方<html>
    <head>
    <META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
    <title>无标题文档</title>
    </head>
    <script language="JavaScript">
    function cc()
    {if (document.form1.Select1.value=1)
    {document.form1.action="http://www.artall.com"
    }
    else 
    {document.form1.action="http://www.sohu.com"
    }
    form1.submit();      ************这里少了括号submit()是一个方法,不是属性,
    }</script>
    <body bgcolor="#FFFFFF" text="#000000">
    <form name="form1" method="post" >
      <select name="select1" id="select1" >
        <option value="1">supplier</option>
        <option value="2">etid</option>
      </select>
      <input type="text" name="textfield">
      <input type="button" name="aa" value="送出" onclick="cc()">
    </form>
    </body>
    </html>