• [Topic modified – “please help” is not useful]

    Hi, I’m trying to link some pages of my website, but I’m stuck.

    I did a drop-down menu box that I want automatically to send the user to another page (internal page) once he/she selects the item from the menu box…

    here is the code I have so far:
    <table>
    <tr><td><input type=”hidden” name=”on0″ value=”SELECT THE YEAR”>SELECT THE YEAR</td></tr><tr><td><select name=”os0″>
    <option value=”2013″>2013</option>
    <option value=”2012″>2012</option>
    <option value=”2013″>2011</option>
    </select> </td></tr>
    </table>

    please help.

    thanks

    [Bump deleted – http://codex.ww.wp.xz.cn/Forum_Welcome#No_Bumping ]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Your code is far from what will work….where did you get it?

    Also, please review:

    http://codex.ww.wp.xz.cn/Forum_Welcome#No_Bumping

    Thread Starter doco

    (@doco)

    I did some search online for different coding and just trying to put 2 and 2 together.
    I did find this which works with external links but not with internal ones.
    here…
    <script>
    <!–
    function land(ref, target)
    {
    lowtarget=target.toLowerCase();
    if (lowtarget==”_self”) {window.location=loc;}
    else {if (lowtarget==”_top”) {top.location=loc;}
    else {if (lowtarget==”_blank”) {window.open(loc);}
    else {if (lowtarget==”_parent”) {parent.location=loc;}
    else {parent.frames[target].location=loc;};
    }}}
    }
    function jump(menu)
    {
    ref=menu.choice.options[menu.choice.selectedIndex].value;
    splitc=ref.lastIndexOf(“*”);
    target=””;
    if (splitc!=-1)
    {loc=ref.substring(0,splitc);
    target=ref.substring(splitc+1,1000);}
    else {loc=ref; target=”_self”;};
    if (ref != “”) {land(loc,target);}
    }
    //–>
    </script>

    <form action=”dummy” method=”post”><select name=”choice” size=”1″ onChange=”jump(this.form)”><option value=””>SELECT THE YEAR</option><option value=”http//:risticar.com/159-0″>2013</option><option value=”http//:risticar.com/160-0″>2012</option><option value=”http//:risticar.com/161-0″>2011</option></select></form>

    …I’m stuck 🙁

    Thread Starter doco

    (@doco)

    just did it….
    I saw the typo I made 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘some problems linking dropdown menu’ is closed to new replies.