Results 1 to 6 of 6

Thread: Dropdown HTML control

  1. #1
    Join Date
    Feb 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Arrow Dropdown HTML control

    Hi people

    is there anyway of having more then one of the Dropdown HTML control with in one page

    Url
    http://www.dynamicdrive.com/dynamici...owncontrol.htm

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Yes, there are two on the demo page itself in fact!
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Nov 2006
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    When I add a new menu beside the first one, the second menu will not drop down? (on mouse over) Anyone know why this would happen?


    example:

    menu_________menu
    1 item______[will not show items below]
    2 item______[will not show items below]
    3 item______[will not show items below]


    Url
    http://www.dynamicdrive.com/dynamici...owncontrol.htm

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by bakerballs
    When I add a new menu beside the first one, the second menu will not drop down? (on mouse over) Anyone know why this would happen?


    example:

    menu_________menu
    1 item______[will not show items below]
    2 item______[will not show items below]
    3 item______[will not show items below]


    Url
    http://www.dynamicdrive.com/dynamici...owncontrol.htm
    Huh?

    HTML Code:
    <div id="menu_parent"
         style="width: 100px; border: 1px solid black; background: #FFFFEE; padding: 0px 5px;
                font-weight: 900; color: #008000;">
    Main Menu
    </div>
    <div id="menu_child"
         style="position: absolute; visibility: hidden; background: #FFFFEE;">
    <a style="display: block; width: 100px; border: 1px solid black; padding: 0px 5px; text-decoration: none; font-weight: 900; color: #0000C0; border-bottom: none;" href="#">Item 1</a>
    <a style="display: block; width: 100px; border: 1px solid black; padding: 0px 5px; text-decoration: none; font-weight: 900; color: #0000C0; border-bottom: none;" href="#">Item 2</a>
    <a style="display: block; width: 100px; border: 1px solid black; padding: 0px 5px; text-decoration: none; font-weight: 900; color: #0000C0;border-bottom: none;" href="#">Item 3</a>
    <div id="huh_parent" style="width: 100px; border: 1px solid black; padding: 0px 5px; text-decoration: none; font-weight: 900; color: #0000C0;">Huh?</div>
    <div id="huh_child" style="position: absolute; visibility: hidden; background: #FFFFEE;margin-top:-77px;"><a style="display: block; width: 90px; border: 1px solid black; padding: 0px 5px; text-decoration: none; font-weight: 900; color: #0000C0; border-bottom: none;" href="#">Blah</a>
    <a style="display: block; width: 90px; border: 1px solid black; padding: 0px 5px; text-decoration: none; font-weight: 900; color: #0000C0;" href="#">Blah</a></div>
    </div>
    
    <script type="text/javascript">
    at_attach("menu_parent", "menu_child", "hover", "y", "pointer");
    </script>
    <script type="text/javascript">
    at_attach("huh_parent", "huh_child", "hover", "y", "pointer");
    </script>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Nov 2006
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    ok, so basicly I want to have more than one drop down menu going accross the top of my page. When I enter the script and add a second drop down menu, the menu will not drop down. (there are two examples on the demo, but the second example is a search box)
    Any ideas how to have mutiple menu boxes that drop down

  6. #6
    Join Date
    Nov 2006
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I found what I was looking for here http://www.javascriptkit.com/script/...stopmenu.shtml

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
  •