A link if defined inside the header itself is intentionally disabled by the script, since otherwise, clicking on it will take the user straight to the new destination, instead of expanding the corresponding sub menu. What you can do is set the "revealtype" option of the script to "clickgo", which overcomes this problem by first expanding the sub menu, and upon completion, take the user to the URL specified inside the header:
Code:
//Initialize first demo:
ddaccordion.init({
headerclass: "mypets", //Shared CSS class name of headers group
contentclass: "thepet", //Shared CSS class name of contents group
revealtype: "clickgo", //Reveal content when user clicks or onmouseover the header? Valid value: "click", "clickgo", or "mouseover"
mouseoverdelay: 200, //if revealtype="mouseover", set delay in milliseconds
"
"
This feature is demonstrated in the example Arrow Side Menu.
Bookmarks