PDA

View Full Version : Link on a class="menuitem submenuheader"



danielix
10-18-2010, 12:35 PM
1) Script Title:
DD Accordion Glossymenu
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex17/ddaccordionmenu-glossy.htm
3) Describe problem:
Good morning,
i need to activate a direct link not just in the submenu <li><a> but in the title of glossymenu too but it is impossible to me now.

egs:


<a class="menuitem submenuheader" href="/bin/link.htm"><img src="/img/img.png" width="5" height="7" border="0" />&nbsp;Title</a>

<div class="submenu">
<ul>
...etc...


may someone helps me?

ddadmin
10-18-2010, 09:47 PM
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:


//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 (http://www.dynamicdrive.com/dynamicindex17/ddaccordionmenu-arrow.htm).