Results 1 to 2 of 2

Thread: simple drop down

  1. #1
    Join Date
    May 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy simple drop down

    hi, i got the code from http://www.dynamicdrive.com/dynamici...owncontrol.htm to make a simple drop down menu.

    <div id="menu_parent">Main Menu</div>

    <div id="menu_child">
    <a href="#">Item 1</a>
    <a href="#">Item 2</a>
    <a href="#">Item 3</a>
    </div>

    <script type="text/javascript">
    at_attach("menu_parent", "menu_child", "hover", "y", "pointer");
    </script>

    when i copy-and-paste to my page, the menu is not the same as the sample. it is horizontally visible. what's wrong with my page? thanks..

  2. #2
    Join Date
    Feb 2007
    Posts
    293
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Did you add the external .js file? You get it from the DD page by clicking the link that says Download. Without that .js file, it won't work

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
  •