PDA

View Full Version : Contractible Headers - Extra links



AdRock
07-13-2006, 06:35 PM
Contractible Headers

http://www.dynamicdrive.com/dynamicindex1/navigate2.htm

I would like to add some links that are not contractible such as a home page link and a contact link.
I have added the links which isn't the problem but what I want to do is if you have a contractible header expanded and you click on a non-contractible header, the menu collapses.

Is this possible?

Many thanks

Ad

jscheuer1
07-14-2006, 06:14 AM
Well, if it is a link that is being clicked, use this:


<a href="some.htm" onclick="contractcontent(0);window.location=this.href;return false;">Some Link</a>

If it is just some non-linked content:


<div onclick="contractcontent(0);">Some content to read here</div>

AdRock
07-14-2006, 10:09 AM
Many thanks jscheuer1....exactly what i wanted