View Full Version : ddaccordian - link

03-26-2009, 09:52 PM
1) Script Title: Apple style Accordion Menu

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ddaccordionmenu-apple.htm

3) Describe problem: So I have the script working great, but I'm wondering how can I make it so that a <a class="menuitem submenuheader" href="/index.php?page=raverbus" >Raver Bus</a> sends the link to the browser?

I would obviously change the link to:
<a class="menuitem submenuheader" href=/index.php?page=raverbus&?submenuheader=0" >Raver Bus</a> so it still pulls down.


03-27-2009, 08:58 AM
If you're basically asking how to enable the link inside the header (so clicking it takes the user to the URL as well), there are two ways:

1) Set the revealtype to "mouseover" inside the config code.
2) Or in v1.7, set the revealtype to "clickgo" instead.

This is the portion of the config code I'm talking about:

//Initialize first demo:
headerclass: "mypets", //Shared CSS class name of headers group
contentclass: "thepet", //Shared CSS class name of contents group
revealtype: "mouseover", //Reveal content when user clicks or onmouseover the header? Valid value: "click", "clickgo", or "mouseover"
mouseoverdelay: 200, //if revealtype="mouseover", set delay in milliseconds before header expands onMouseover

03-27-2009, 10:12 PM
easy enough! thanks for the help.