Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

drop down menu with links

  • 12-08-2008 03:03PM
    #1
    Registered Users, Registered Users 2 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, Registered Users 2 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, Registered Users 2 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, Registered Users 2 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: 9,221 Mod ✭✭✭✭mewso


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


Advertisement