Results 1 to 4 of 4

Thread: Switch Menu question

  1. #1
    Join Date
    Oct 2004
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Switch Menu question

    Script: Switch Menu

    I have successfully added and slightly modified this scrip for a site I am designing. When I first used the menu on the site I noticed that the tree does not stay expanded once on a sub category page. I would like to keep the sub category expanded while viewing that area. I am new to js and have no idea where to begin to add this function. Any help would be greatly appreciated.
    My site
    Last edited by dtblkg35; 10-02-2004 at 01:43 PM.

  2. #2
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    So are you looking for the script to behave like this? Click

    cr3ative
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

  3. #3
    Join Date
    Oct 2004
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you for your response. That is close but not exactly. Here is an example navigation from another site Example. The only problem with the script you have shown me is that once you leave a category it tree does not collapse.

    Thank you

  4. #4
    Join Date
    Oct 2004
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I am getting closer to finding the answer. This might be some help in the future to someone who has individual pages that are not dynamically created that needs this function. The easiest way to have the sub menu stay open would be to use onload event in each of the pages
    Code:
    <body onload="SwitchMenu(\'sub2\')">
    .
    This will not work for my site because i can not put that code in each of the pages it would need to go. So is there a way to pass the 'onload' event keeping the sub-menu open over the pages?

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
  •