Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Contractible Headers Script - expand/contracts out of control :(

  1. #1
    Join Date
    Jun 2006
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Contractible Headers Script - expand/contracts out of control :(

    1) Script Title: Contractible Headers Script

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/navigate2.htm

    3) Describe problem: Hi!

    I tried this script to use as a menu, and everything seemed fine at first,
    however when i click on sub menu links, it it expands or contracts other "expandcontents"
    I think i worked out it is something to do with var enablepersist="on"and cookies..

    here's the link to a draft website
    http://kriskl.gotdns.com/

    any help would be greatly appreciated, as i like that script and don't want to give up on it yet!

    thaks

    kris

  2. #2
    Join Date
    Apr 2006
    Posts
    429
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    HTML Code:
    var collapseprevious="no" //Collapse previously open content when opening present? (yes/no)
    basically, if u don't want to collapse ACCA after clicking on Courses then collapseprevious should be no


    u see what i mean?

  3. #3
    Join Date
    Jun 2006
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    hi Jr!

    thank you for reply, i know that i can do it, but that;s not what was my problem

    My problem is when I click sublinks,

    The way main link buttons works is fine,
    I wanted to have one expandable menu (sublinks) opened at a time, but clicking on sublinks, makes other MainLiks - Headers open as well almost in random

  4. #4
    Join Date
    Apr 2006
    Posts
    429
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    m sorry i still don't see the problem

    <edit>

    have u tried the collapseprevious=no and click the sublinks?

  5. #5
    Join Date
    Jun 2006
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    hi!
    of course i tried it on/off etc, I can only guess you are using Internet Explorer, so it not so chaotic like in Firefox,
    but it stil is not behaving like it should to my mind,

    maybe someone else understand what i mean and can see and explain it a better?

  6. #6
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Your IDs don't match up. For example, you have:
    Code:
    <h3 onclick="expandcontent('sc1')" style="cursor:hand; cursor: pointer">
      <a href="index.php" class="mlink">Home</a>
    </h3>
    But you don't have a
    Code:
    <div id="sc1" class="switchcontent">
    anywhere.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  7. #7
    Join Date
    Apr 2006
    Posts
    429
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    he he

    <edit>
    I can only guess you are using Internet Explorer, so it not so chaotic like in Firefox
    tried ur site in IE ... it's as chaotic in IE as FX ...
    thought i myt want to know
    Last edited by jr_yeo; 07-08-2006 at 04:01 PM.

  8. #8
    Join Date
    Jun 2006
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    hi Twey!

    I corrected it, (i thought it was not necessary, since it was empty)

    but it still didnt solve the problem.

    maybe Contr, Headers script was not made to contain sub links menus

  9. #9
    Join Date
    Apr 2006
    Posts
    429
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    can it not be done by frames and iframes?

  10. #10
    Join Date
    Jun 2006
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    frames? i don;t know,

    I wanted pure css menu, that would degrade nicely when not supported by browsers or lack of javascript.

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
  •