Results 1 to 3 of 3

Thread: Contractible Headers - Extra links

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

    Default Contractible Headers - Extra links

    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

  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

    Well, if it is a link that is being clicked, use this:

    HTML Code:
    <a href="some.htm" onclick="contractcontent(0);window.location=this.href;return false;">Some Link</a>
    If it is just some non-linked content:

    HTML Code:
    <div onclick="contractcontent(0);">Some content to read here</div>
    - John
    ________________________

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

  3. #3
    Join Date
    Jul 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Many thanks jscheuer1....exactly what i wanted

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
  •