PDA

View Full Version : Hiding/showing panels with DD Drop Down Panel



lynmouthwebdesign
12-29-2008, 07:14 PM
1) Script Title: DD Drop Down Panel

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/dddropdownpanel.htm

3) Describe problem:

Hi,

I have a webpage with three sections and I have set up this script to toggle each section when a link in a menu is clicked. However, when I click to open one of the other panels, the panel I originally opened stays open and I have to click on the menu again to close it.

How can I adjust the script so that an open panel is closed/hidden when a different panel link is clicked? :confused:

Eg:
link 1 opens Panel 1 and hides Panel 2 and 3
link 2 opens Panel 2 and hides Panel 1 and 3
link 3 opens Panel 3 and hides Panel 1 and 2

Many thanks and Happy New Year :cool:

Snookerman
12-29-2008, 07:16 PM
Could you please post a link to your site?

lynmouthwebdesign
12-30-2008, 12:55 AM
Sure, here is a test page.
It's still work in progress but I'm sure you get the idea.

http://www.lynmouthwebdesign.co.uk/test

What I'm after is when you press another link, eg. portfolio, the services panel will hide itself. At the moment I get all three panels displayed if i press all the links at once.

lynmouthwebdesign
12-30-2008, 10:24 AM
I've sorted it out now - thanks!

The Accordion Content script (v1.6) http://www.dynamicdrive.com/dynamicindex17/ddaccordion.htm?mypets=2 proved to be a better solution to what I was after

Happy New Year ;)