1 Reply Latest reply: Dec 7, 2011 4:09 AM by MurraySummers RSS

    JumpMenu PHP - Label

    Rodrigo V. E. da Silva

      Hello everyone adobe community!

      I'm in trouble and know that everyone here has experience with this to help me.
      Below is the code

       

      <script type="text/javascript">

      <!--

      function MM_jumpMenu(targ,selObj,restore){ //v3.0

        eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");

        if (restore) selObj.selectedIndex=0;

      }

      //-->

      </script>

      <form name="form" id="form" action="">

        <select name="select2" id="jumpMenu" onchange="MM_jumpMenu('parent',this,0)" class="styled" style="margin:30px 0 0 685px; width:80px; float:left;">

          <option value="imprensa.php">2011</option>

          <option value="imprensa-em-2010.php">2010</option>

          <option value="imprensa-em-2009.php">2009</option>

          <option value="imprensa-em-2008.php">2008</option>

        </select>

      </form>

       

      My question is as follows:

      When I click on the imprensa-em-2010.php would like the option label 2010 writes, because it returns the first label is 2011.
      And so with the other items below
      This is a jumpMenu because when I click on 2008 for example he gives me a page properly impresa-em-2008.php just right over the label instead of writing in 2008, he returns to 2011.

      I thank everyone's understanding.
      God bless you.

      Rodrigo Vieira da Silva Eufrasio
      Brazil - Sao Paulo - Osasco
      55 11 6691-5299
      Gmail: rodrigo.mct@gmail.com

        • 1. Re: JumpMenu PHP - Label
          MurraySummers ACP/MVPs

          That same jump menu is on each of the pages?

           

          So, on the inprensa-em-2010.php page, do this -

           

            <select name="select2" id="jumpMenu" onchange="MM_jumpMenu('parent',this,0)" class="styled" style="margin:30px 0 0 685px; width:80px; float:left;">

              <option value="imprensa.php">2011</option>

              <option value="imprensa-em-2010.php" selected="selected">2010</option>

              <option value="imprensa-em-2009.php">2009</option>

              <option value="imprensa-em-2008.php">2008</option>

            </select>

           

          And on the inprensa-em-2009.php page, do this -

           

            <select name="select2" id="jumpMenu" onchange="MM_jumpMenu('parent',this,0)" class="styled" style="margin:30px 0 0 685px; width:80px; float:left;">

              <option value="imprensa.php">2011</option>

              <option value="imprensa-em-2010.php">2010</option>

              <option value="imprensa-em-2009.php" selected="selected">2009</option>

              <option value="imprensa-em-2008.php">2008</option>

            </select>

           

          Did I guess correctly?