The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
2 posters

    Adding A Drop-Down Menu Code

    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51554
    Reputation : 3523
    Language : English
    Location : United States

    Solved Adding A Drop-Down Menu Code

    Post by SLGray July 27th 2011, 5:31 am

    <form name="Site Related Discussions">
    <select style="font-size:12px;color:#696969;font-family:verdana;background-color:#ffffff;" name="menu" onChange="window.open(document.Site Related Discussions.menu.options[document.Site Related Discussions.menu.selectedIndex].value);">
    <option value=''>Please Choose A Subforum</option>
    <option value="http://zootycoonwildlife.aforumfree.com/f12-introductions-goodbyes">Introductions/Goodbyes</option>
    <option value="http://zootycoonwildlife.aforumfree.com/f2-news-updates-announcements">Announcements/News/Updates</option>
    <option value="http://zootycoonwildlife.aforumfree.com/f3-questions-suggestions">Questions/Suggestions</option>
    </select>
    </form>

    The above code is a drop-down menu code I am trying to add to my forum. The site where I am getting the code from says it is a html code. I am adding it to one of my forum's description. It is showing up correctly, but when I select one of the choices; it does not load the page for that choice.
    avatar
    Guest
    Guest


    Solved Re: Adding A Drop-Down Menu Code

    Post by Guest July 27th 2011, 9:07 am

    This should work:

    Code:
    <select style="font-size:12px;color:#696969;font-family:verdana;background-color:#ffffff;" onchange="if(this.options[this.selectedIndex].value != '-1'){window.location=this.options[this.selectedIndex].value}">
      <option value="-1">Please Choose A Subforum</option>
      <option value="-1"> </option>
      <option value="/f12-">Introductions/Goodbyes</option>
      <option value="/f2-">Announcements/News/Updates</option>
      <option value="/f3-">Questions/Suggestions</option>
    </select>
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51554
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: Adding A Drop-Down Menu Code

    Post by SLGray July 27th 2011, 5:59 pm

    Thanks, Dion. It worked perfectly. Thanks for taking the time to fix it for me.



    Adding A Drop-Down Menu Code Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    Base
    Base
    Forumaster


    Male Posts : 10383
    Reputation : 1695
    Language : English and French
    Location : United Kingdom, England

    Solved Re: Adding A Drop-Down Menu Code

    Post by Base July 27th 2011, 6:03 pm

    Solved => Locked

      Current date/time is November 11th 2024, 8:36 pm