Sleepy Weasel
10-28-2010, 06:21 PM
1) Script Title: Accordion Menu script (Arrow Side menu)
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ddaccordionmenu-arrow.htm
3) Describe problem:
Hello guys,
I have been using the dd accordion menu for a while now and it has been working great with the exception of one small detail. Half of my menu items are headers with UL content list, the other half are just links without contents. As long as I click on a header that has content under it (using any method: click, clickgo, mouseover) I will be taken to the next page and the previous header will close and the current pages content will remain open. However, if I click one that does not have contents the previous header contents will remain open once I am taken to the next page.
Is there a way to get the menus to always close when going to a new section, regardless if the new section has contents or not?
Example: From the scripts page above. If a person was on the "CSS Library" page and then clicked the "Forums" link. Could it keep the CSS Library contents closed and just have the Forums link highlighted.
I have also tried setting the styles and classes manually and setting persiststate to false. However when I do this the script always overwrites my display:block on the current sections contents and sets it back to none. If there was a way to stop it from doing this that would be beyond fantastic.
edit: in short, is there a way to always collapse the content of the current open header when a link is clicked (any link, not just a link that has contents of its own)
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ddaccordionmenu-arrow.htm
3) Describe problem:
Hello guys,
I have been using the dd accordion menu for a while now and it has been working great with the exception of one small detail. Half of my menu items are headers with UL content list, the other half are just links without contents. As long as I click on a header that has content under it (using any method: click, clickgo, mouseover) I will be taken to the next page and the previous header will close and the current pages content will remain open. However, if I click one that does not have contents the previous header contents will remain open once I am taken to the next page.
Is there a way to get the menus to always close when going to a new section, regardless if the new section has contents or not?
Example: From the scripts page above. If a person was on the "CSS Library" page and then clicked the "Forums" link. Could it keep the CSS Library contents closed and just have the Forums link highlighted.
I have also tried setting the styles and classes manually and setting persiststate to false. However when I do this the script always overwrites my display:block on the current sections contents and sets it back to none. If there was a way to stop it from doing this that would be beyond fantastic.
edit: in short, is there a way to always collapse the content of the current open header when a link is clicked (any link, not just a link that has contents of its own)