Please could someone advise me regarding this. I am currently using the accordion plugin from bassistance.de working successfully when you hover over each item header to reveal each child content. I am using an unordered list for this (4 list items, each with 2 child items)
This is fine, but the requirements now call for it to:
- automatically cycle (expand/collapse) each list item every 5 seconds, but
- to be paused when u hover over the child content (not the parent item that usually activates the accordion functionality for that list item)
- still retain mouseover functionality, ie. expand/collapse child contents for each list item.
I hope all of this makes sense, and if anything is unclear, please let me know and i’ll be more than happy to clarify it!
thank u!
To do this create a function that does two things:
To have it stop cycling on mouseover, sorround the click() call in a if(running) and create start and stop methods to control the running variable. Bind these to mouseover on the relevant elements.
See this example for inspiration (look for the ‘And finally…’ headline).