expand all, contract all

Discussion in 'Javascript' started by mt, Oct 4, 2004.

  1. mt

    mt Guest

    My left nav on this site: www.middletree.net is just like I want it, except
    I'd like to have an Expand All and Contract All link. Can't figure out the
    code. Any help or advice appreciated.
     
    mt, Oct 4, 2004
    #1
    1. Advertising

  2. mt

    Randy Webb Guest

    mt wrote:
    > My left nav on this site: www.middletree.net is just like I want it, except
    > I'd like to have an Expand All and Contract All link. Can't figure out the
    > code. Any help or advice appreciated.


    Make an array of all the ID's of all your menu items. Then, loop through
    that array and set its style to none and '' as appropriate.


    --
    Randy
    comp.lang.javascript FAQ - http://jibbering.com/faq
     
    Randy Webb, Oct 4, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. vivek
    Replies:
    2
    Views:
    6,253
    pushp
    Jun 14, 2007
  2. Piet
    Replies:
    1
    Views:
    815
    Josiah Carlson
    Apr 4, 2004
  3. Specialist Verilog Engineers Roles
    Replies:
    0
    Views:
    480
    Specialist Verilog Engineers Roles
    Jun 27, 2007
  4. Andrew Bailey
    Replies:
    9
    Views:
    665
    richard
    Apr 16, 2008
  5. Sinan Alkan

    expand all parent node

    Sinan Alkan, Jan 3, 2009, in forum: ASP .Net
    Replies:
    6
    Views:
    419
    Jeff Johnson
    Jan 5, 2009
Loading...

Share This Page