Results 1 to 3 of 3

Thread: Switch Content II body onload problem

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

    Angry Switch Content II body onload problem

    Hi All,

    Can anyone out there tell me how to hide all DIVS on my page with the Switch Content II script in the body onload event? I keep getting an error telling me that 'ccollect' is not defined. If I do a typeof check then I get the same error for 'statecollect'.

    I don't care if the page remembers where the expand or contract state was, I just want to contract all when the page loads but still have the ability to expand contract through the click event (which works great as of right now).

    Any help would be very much appreciated.


    ....Frustrated....

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Nov 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up thanks for that!

    just registered to say thanks for posting that reply, really helped me out. as you can guess im no expert with javascript!

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
  •