Results 1 to 9 of 9

Thread: Problem Using Slashdot Menu.. when refreshing...

  1. #1
    Join Date
    Apr 2009
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Problem Using Slashdot Menu.. when refreshing...

    1) Script Title:
    Slashdot Menu

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

    3) Describe problem:

    Hi,
    When startup page or refreshing the menu start with all submenu expanded, and then it closed.
    how to start it when it all closed?

    What should I do?
    Thanks.

  2. #2
    Join Date
    Apr 2009
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Plz help me,
    if ur not understanding something, ask me.

    Thanks...

  3. #3
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    I myself don't really understand. Could you please try to explain again?

  4. #4
    Join Date
    Apr 2009
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Sure,
    When I'm loading a page with the menu in it,
    all the MenuItems that Got submenus Items are shown open.
    and than closed by itselft.

    I want that it from the beginning [when loading page..] will be closed.

    unstarstand?

  5. #5
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Find the following in your code and change it from true to false:
    Code:
    myMenu.remember = true;               // Store menu states (expanded or collapsed) in cookie and restore later
    Good luck!

  6. #6
    Join Date
    Apr 2009
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Still not working...
    Can I send u my code?
    if so... where?

  7. #7
    Join Date
    Apr 2009
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Problem with Slashdot menu...

    1) Script Title:
    Slashdot Menu

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

    3) Describe problem:

    Hi,
    when pressing on one of the submenus in the menu, all of the submanuses are being expanded for second and after that collapsed.

    how to start it when it all closed, meaning when I'll press on submenu it will not expands all submenus.

    in the js i got this definition:

    Code:
    function SDMenu(id) {
    	if (!document.getElementById || !document.getElementsByTagName)
    		return false;
    	this.menu = document.getElementById(id);
    	this.submenus = this.menu.getElementsByTagName("div");
    	this.remember = false;
    	this.speed = 5;
    	this.markCurrent = true;
    	this.oneSmOnly = true;
    }
    What should I do?
    Thanks...

    Thanks.
    Last edited by Snookerman; 04-27-2009 at 08:55 PM. Reason: added [code] tags

  8. #8
    Join Date
    Apr 2009
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Plz help me to fix it,
    if u're not undersanding my problem plz ask.

    Thanks..

  9. #9
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    I think that happens because the code that closes the menus is being read after the page loads. I'm not sure if this will help, but since nobody has answered, try adding this to the head section of your page:
    HTML Code:
    <script type="text/javascript">
    myMenu.collapseAll();
    </script>
    Also, as you can see, I merged your threads since they deal with the same issue.

    Good luck!

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
  •