PDA

View Full Version : Resolved Animated Collapsible DIV v2.01/ Close all open DIVs before a new opens



Agioz
01-04-2009, 01:35 AM
Thank for the great script!

I am trying to use it as a nav bar and open the corresponding DIV only. I mean, I want to allow only one DIV to be opened at a time. :confused:

Does anyone know what is the best way to do it ?

Thanks!

Nile
01-04-2009, 01:38 AM
Try:
http://www.dynamicdrive.com/dynamicindex17/ddaccordionmenu.htm

Agioz
01-04-2009, 01:44 AM
Thanks, but this would be a really a nice way to show/hide the contents of each section of the page. If I could specify which DIV shows at a given time ...

Thanks!

Nile
01-04-2009, 01:57 AM
Please post a link to the page on your site that contains the problematic script so we can check it out.

Agioz
01-04-2009, 02:01 AM
Here you go:

http://billdenoyelles.com/home.html

So far the first two items has links to it, but it shows how I want it work.

My problem is that clicking on the second item opens the DIV under the first, so it can't be seen...

Thanks again!

Agioz
01-05-2009, 12:15 AM
This one is resolved.

I created a function:

function clickex4() {
location.href="javascript:animatedcollapse.hide(['ex1','ex2','ex3'])";
}

Then I just called the function when the fourth was clicked;

<a href="javascript:animatedcollapse.show('Bio')" onclick="clickex4()">EX4 to click on</a>

This way when you click on ex4, all the others will collapse.

Nile
01-05-2009, 12:15 AM
It seems your topic is solved... Please set the status to resolved.. To do this:
Go to your first post ->
Edit your first post ->
Click "Go Advanced" ->
Then in the drop down next to the title, select "RESOLVED"