Advanced Search

Results 1 to 3 of 3

Thread: Slashdot Menu Problem in Expanding/Collapsing

  1. #1
    Join Date
    Feb 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Slashdot Menu Problem in Expanding/Collapsing

    1) Script Title: Slashdot Menu

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

    3) Describe problem: I have a probleb. I have created a menu on my website which is long (15 Items),

    My Problem is with the Show/Hide of the Menus, if someone open my website first time on his/her computer (or my cookiers are reset) then all the menus are Expanded with these values of variables disabled

    // Additional methods...

    //var firstSubmenu = myMenu.submenus[0];
    //myMenu.expandMenu(firstSubmenu); // Expand a submenu
    //myMenu.collapseMenu(firstSubmenu); // Collapse a menu
    //myMenu.toggleMenu(firstSubmenu); // Expand if collapsed and collapse if expanded
    //myMenu.expandAll(); // Expand all submenus
    //myMenu.collapseAll(); // Collapse all submenus
    myMenu.init();


    and if i enable the values then it DO NOT remeber or use the last open menu's values from navigation. What i want is on first time it should use

    myMenu.collapsAll();
    and after that it never used it till the cookies exists or something like that so that it uses the values of open menus from cookies.

    Anybody Plz Help
    Aloha

  2. #2
    Join Date
    Jun 2006
    Posts
    182
    Thanks
    0
    Thanked 14 Times in 14 Posts

    Default

    What i want is on first time it should use
    myMenu.collapsAll();
    and after that it never used it till the cookies exists or something like that so that it uses the values of open menus from cookies.
    Nope, you can't do it that way, but you can set every div's class attribute to "collapsed", it will work then (set remember to true and don't call collapseAll()).

  3. #3
    Join Date
    Feb 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for ur help. I tried it that way and it worked.

    Thanks alot

    Aloha
    Last edited by AlohaMora; 06-13-2007 at 07:44 AM.

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
  •