Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: close one div when another opens
08-17-2011, 09:54 PM #1
- Join Date
- Aug 2011
- Thanked 0 Times in 0 Posts
close one div when another opens
I have a page with categories of images. When clicked, each image on the left opens a div with it's own gallery of thumbnails.
Right now, to close a div, the category image has to be clicked a second time. How can I set it so that when one div opens, the other closes automatically? The client wants only one category displayed at a time.
Any help would be appreciated.
08-18-2011, 01:12 AM #2
Ugh...you are using *ANCIENT* code.
That bit with layers only ever applied to Netscape 4 browser. And the need for document.all disappeared when MSIE 4 died. So that code is roughly 11 years old.
See if this works: