Results 1 to 3 of 3

Thread: DD Drop Down Panel Question

  1. #1
    Join Date
    Feb 2009
    Posts
    48
    Thanks
    13
    Thanked 0 Times in 0 Posts

    Default DD Drop Down Panel Question

    DD Drop Down Panel
    http://www.dynamicdrive.com/dynamici...pdownpanel.htm

    ------------------------
    Using the script below and changing out those three IDs in the HTML, I can create multiple dropdowns on a page. Is it possible to modify the code so that the dropdowns interact with each other in that every time you click to open one menu, the others close? That way at least one of the menus is open at all times? Thanks in advance....

    ------------------------
    <script type="text/javascript">

    var testpanel=new ddpanel({
    ids: ["mypanel2", "mypanelcontent2", "mypaneltab2"], // id of main panel DIV, content DIV, and tab DIV
    stateconfig: {initial: "0px", persiststate: true}, // initial: initial reveal amount in pixels (ie: 5px)
    animate: {enabled: true, steps: 15}, //steps: number of animation steps. Int between 1-20. Smaller=faster.
    pointerimage: {enabled: true, src: ["images/arrow-down.gif", "images/arrow-up.gif"]},
    closepanelonclick: {enabled: true} // close panel when links or elements with CSS class="closepanel" within container is clicked on?
    })

    </script>

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Hmm there's no easy way to do this with this script unfortunately. The closest thing would be Animated Collapsible DIV, which supports a grouping feature. When one DIV within the group is expanded, the other is automatically closed.
    DD Admin

  3. #3
    Join Date
    Feb 2009
    Posts
    48
    Thanks
    13
    Thanked 0 Times in 0 Posts

    Default

    Yep, found that one earlier this morning and have been working with it. I've got it up and running the way I want except for that validation issue which you're helping me out with in the other thread. Thanks much!

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
  •