Hi all.
I've been quite busy lately. Found a lot of useful resources on the forum and learned a lot untill now.
I would like to know if there's anyone who knows how to have the expandable menu content remain open after clicking on an exhibition. I have used the Ross Cairns plugin and script from this thread.
The default setting here is that you can have multiple sections open at a time, but when you click something, all sections close except for the active section.
Is there a way to leave all sections open unless you manually collapse them?
I guess it's something here but I wouldn't know exatly what or where:
/*Expanding Menus for Indexhibit
*uses jquery
*
*Created by Ross Cairns Mar 2008
*/
function expandingMenu(num) {
var speed = 500;
var item_title = $("#menu ul").eq(num).children(":first");
var items = $("#menu ul").eq(num).children().filter(function (index) { return index > 0; });
/* hide items if not active */
if (items.is(".active") == false) {
items.hide();
}
/* add click functions + pointer to title */
item_title.css({cursor:"pointer"}).toggle(
function () {
items.show(speed);
}, function () {
items.hide(speed);
}
)
}
Thanks!