SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Feb 2012
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    I need help gtting a dropdown link menu PLEASE Help !!

    I wanted to see anyone can help me fine the code to create a dropdown link or a flyout like the eBay link on this page http://pages.ebay.com/help/policies/adult-only.html you will see link Amateur items,
    Adult anime items,Bondage items etc.... I would like to fine that so I can make the links, does anyone have a idea or a code that is close to the same that would like to shear

    123.png

  2. #2
    SitePoint Member battambang_kid's Avatar
    Join Date
    Feb 2012
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    google for "accordion menu", tons of sample code out there.

  3. #3
    SitePoint Zealot
    Join Date
    Mar 2006
    Posts
    133
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quite easy in jquery:

    Code:
    $(document).ready(function(){
    
     // On dropdown box change
     $("#DDB").change(function(){   //  DDB is the id of the dropdown box
      window.location.href = $('#DDB').val();   // redirect to the url contained in the value of the drop down box
     });
    });
    Code:
    <select id="DDB">
    <option value="url1.htm">Link 1</option>
    <option value="url2.htm">Link 2</option>
    <option value="url3.htm">Link 3</option>
    </select>
    David


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •