PDA

View Full Version : Accordion



jonace73
10-24-2016, 10:50 AM
I have an accordion menu system. Consider the following scenario:

1. Suppose I clicked a main menu called "Main1" in my accordion menu system.
2. A set of submenus will appear in accordion style (the buttons below "Main1" button is pushed downwards while the submenu buttons are placed one at a time) below "Main1" button.
3. Now, Suppose I click one of the submenus called "Sub1".
4. An image will then appear below "Sub1" in accordion style.
5. Next, I click another main menu called "Main2".
6. The submenus of "Main1" will collapse.
7. Lastly, suppose I click "Main1" again.
8. Step 2 will repeat but with "Sub1" button having an image which I don't wish to have.

How to prevent the appearance of this image?

Another question: How to associate window.history to the accordion menu system such that backward and forward browser buttons will be in accord with the accordion menu form?

Your idea on how to fix this problem will highly be appreciated.

mlegg
10-24-2016, 05:35 PM
Edit your question and post all of your code.