Results 1 to 6 of 6

Thread: Slashdot Menu collapse / expand issue

  1. #1
    Join Date
    Jul 2007
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Slashdot Menu collapse / expand issue

    1) Script Title: Slashdot Menu

    2) Script URL (on DD): http://dynamicdrive.com/dynamicindex1/slashdot.htm

    3) Describe problem: Check : bottom of the left sidebar at www.delhievents.com, the menus are always expanded. But i want them to be collapsed initially & expand only on click. After that if you click another menu it should open & the previous one should collapse. So, only one expands at a time.

    What code do i need to add & where?

    Thanks, Rohit

  2. #2
    Join Date
    Jun 2007
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    In the file sdmenu.js

    Find this code:

    function SDMenu(id) {
    if (!document.getElementById || !document.getElementsByTagName)
    return false;
    this.menu = document.getElementById(id);
    this.submenus = this.menu.getElementsByTagName("div");
    this.remember = true;
    this.speed = 4;
    this.markCurrent = true;
    this.oneSmOnly = true;


    Maybe your code is with valor false must change to true

  3. #3
    Join Date
    Jul 2007
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Changed it to 'true' but still nothing is happening.

  4. #4
    Join Date
    Jun 2007
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    maybe you have activated

    myMenu.expandAll();


    I use this menu and works very well

    I put this code also in the htm code:

    <div class="collapsed">

    I also prefer this menu collapsed when page loads!

  5. #5
    Join Date
    Jul 2007
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Can you send me all the steps you followed with code?

    Thanks, Rohit

  6. #6
    Join Date
    Jul 2007
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Solved! :-)

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
  •