Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

drop down menu with links

Options
  • 12-08-2008 4:03pm
    #1
    Registered Users Posts: 788 ✭✭✭


    Is there a simple way to insert links into a drop down menu? I tried inserting them as the option value but to no avail, unless you have to use the full URL with http://etc? I just used 'page.html'


Comments

  • Registered Users Posts: 2,119 ✭✭✭p


    It should be fairly straight-forward, but you really need to throw up a code sample. We're not psychics.


  • Registered Users Posts: 788 ✭✭✭sleepyescapade


    :o
    <SELECT NAME="categories">
    <option value="Choose_a_category">Choose a category</option>
    <option value="live.html">Living Room</option>
    <option value="photo.html"> Photos</option>
    <option value="dining.html">Dining</option>
    <option value="review.html">Review</option>
    </select>
    

    The customer needs to be able to click on an option in the drop down and be directed to that page.


  • Closed Accounts Posts: 975 ✭✭✭squibs


    Think this will work:
    <select onchange="window.location.href=this.options[this.selectedIndex].value">
    <option value="Choose_a_category">Choose a category</option>
    <option value="live.html">Living Room</option>
    <option value="photo.html"> Photos</option>
    <option value="dining.html">Dining</option>
    <option value="review.html">Review</option>
    </select>


  • Registered Users Posts: 788 ✭✭✭sleepyescapade


    squibs wrote: »
    Think this will work:
    <select onchange="window.location.href=this.options[this.selectedIndex].value">
    <option value="Choose_a_category">Choose a category</option>
    <option value="live.html">Living Room</option>
    <option value="photo.html"> Photos</option>
    <option value="dining.html">Dining</option>
    <option value="review.html">Review</option>
    </select>

    Thanks, will give it a go :)


  • Closed Accounts Posts: 50 ✭✭foxhound


    if you are using dreamweaver its called "Jump Menu"
    just fill in the links


  • Advertisement
  • Moderators, Science, Health & Environment Moderators Posts: 8,874 Mod ✭✭✭✭mewso


    May as well push my unobtrusive agenda - http://www.systemdotweb.com/viewpost.aspx?id=7


Advertisement