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

Thread: Accordion Menu Problem in IE6 / FF2

  1. #1
    Join Date
    Mar 2008
    Posts
    7
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Accordion Menu Problem in IE6 / FF2

    1) Script Title: Accordion Menu

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...ordionmenu.htm

    3) Describe problem: Look here

    "Working fields" and "Projects" are animated. In IE7 is all OK, but in IE6 the submenus are far away from each other, which makes the whole menu very long. In FF2 the submenu is too compact where there's almost no space between the lines.

    Here you can find the CSS.

    Does anybody has a hint? Thanks.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Try removing the below line in red in nav.css:

    Code:
    .glossymenu div.submenu ul li a{
    display: block:
    Since your links are just plain links, there's no point in using the above line.

  3. #3
    Join Date
    Mar 2008
    Posts
    7
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Thanks!!! That does it.

    Another question:
    If you open one animated submenu in FF and zoom the font with ctrl + the left margin for the submenu is not on the same line (vertically). I can't see where the mistake is. Do you have an idea?
    Thanks.

  4. #4
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    You may need to experiment a bit, by adding a margin-left either within the A element itself, or its parent LI element, something like:

    Code:
    .glossymenu div.submenu ul li{
    margin-top: 0;
    margin-left: 10px;
    padding: 0;
    }
    
    .glossymenu div.submenu ul li a{
    /* display: block; */
    font: bold 9px Arial, Verdana, Helvetica, sans-serif;
    color: black;
    text-decoration: none;
    padding: 0 0 0 10px; 
    margin-left: 10px;
    }
    You'd only be adding 1 of the above 3 highlighted at any given time, removing the other two.

  5. #5
    Join Date
    Mar 2008
    Posts
    7
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Yeah thanks, a "left-margin" ind the ".glossymenu div.submenu ul" fixed it.
    Great script btw. :-)

  6. #6
    Join Date
    Mar 2008
    Posts
    7
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Another one :-)
    Is this scenario possible? You are in the "about" page and click on "working fields" or on "products". I want to open the corresponding site with it's submenu expanded. In the moment it keeps the state I left it before.
    I hope this makes sense.

    How can I integrate it? What is meant by index1, etc?
    Maybe a dump question but ..... thanks.

  7. #7
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    The persistence feature if enabled should do this already, with a little tweak if the pages using the Accordion Menu on your site reside in different sub directories. See this thread: http://www.dynamicdrive.com/forums/s...ad.php?t=29603

  8. The Following User Says Thank You to ddadmin For This Useful Post:

    the_dreamer (03-11-2008)

  9. #8
    Join Date
    Mar 2008
    Posts
    7
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Thanks ddadmin!
    I changed the line in the script and what it does now, is that it keeps the submenus collapsed, and not like I want it to, expanded, but accordingly to the site I'm opening, like I explained earlier.

    Can I achieve that with the "defaultexpanded" line in the init-script?
    I'm not sure what I should put in there, the filename with path?
    Thanks!

  10. #9
    Join Date
    Mar 2008
    Posts
    7
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    bumb.....anyone an idea?

  11. #10
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    I'm not sure I quite understand your next to last post. But in general, the defaultexpanded parameter would be used to contain the indices of the headers you wish to be expanded by default, such as:

    Code:
    Code:
    defaultexpanded: [0,1],
    This causes the 1st and 2nd headers to be expanded by default, though if you have persistence turned on as well, you'll want to close the browser then reopen it to see the former take effect.

  12. The Following User Says Thank You to ddadmin For This Useful Post:

    the_dreamer (03-13-2008)

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
  •