PDA

View Full Version : Menu accordion don't remote link expand menu



antiblood1
02-11-2014, 10:07 AM
1) Script Title: Menu accordion don't remote link expanded menu

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

3) Describe problem: This website does not need more ?submenuheader=1 url but still open at the end of the tabs.
how can do that
Help me!

djr33
02-11-2014, 12:06 PM
1) Script Title: Menu accordion don't remote link expanded menu

2) Script URL (on DD): home.thegioihoanmy.netThis should be about the script here on this website. It's also helpful to see your webpage, but we need to know the first you're using first!

antiblood1
02-11-2014, 12:58 PM
sorry, I will say more:
ex: I have code
file 1.php

<a href="2.php?submenuheader=1" target="_blank">click test link</a>
file 2.php

<script src="content/jquery-latest.js" type="text/javascript"></script>

<script src="content/ddaccordion.js" type="text/javascript"></script>

</script>


<script type="text/javascript">


ddaccordion.init({
headerclass: "submenuheader", //Shared CSS class name of headers group that are submenuheader
contentclass: "submenu_", //Shared CSS class name of contents group
revealtype: "click", //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
collapseprev: true, //Collapse previous content (so only one open at any time)? true/false
defaultexpanded: [0], //index of content(s) open by default [index1, index2, etc]. [] denotes no content
onemustopen: false, //Specify whether at least one header should be open always (so never all headers closed)
animatedefault: false, //Should contents open by default be animated into view?
persiststate: true, //persist state of opened contents within browser session?
toggleclass: ["", "openheader"], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
togglehtml: ["prefix", "", ""], //Additional HTML added to the header when it's collapsed and expanded, respectively ["position", "html1", "html2"] (see docs)
animatespeed: "fast", //speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow"
oninit:function(headers, expandedindices){ //custom code to run when headers have initalized
//do nothing
},
onopenclose:function(header, index, state, isuseractivated){ //custom code to run whenever a header is opened or closed
//do nothing
}
})


</script>

<link href="content/css2_.css" rel="stylesheet" type="text/css"><link href="content/flexdropdown.css" rel="stylesheet" type="text/css"><link href="content/css_page.css" rel="stylesheet" type="text/css">
<div class="glossymenu">

<h3 class="menuheader submenuheader">Mainmenu 1</h3>
<ul class="submenu_">
<li><a href="#">Submenu 1</a></li>
<li><a href="#">Submenu 2</a></li>
<li><a href="#">Submenu 3</a></li>
<li><a href="#">Submenu 4</a></li>
<li><a href="#">Submenu 5</a></li>
<li><a href="#">Submenu 6</a></li>
<li><a href="#">Submenu 7</a></li>
</ul>


<h3 class="menuheader submenuheader">Mainmenu 2</h3>
<ul class="submenu_">
<li><a href="#">Submenu 1</a></li>
<li><a href="#">Submenu 2</a></li>
<li><a href="#">Submenu 3</a></li>
<li><a href="#">Submenu 4</a></li>
<li><a href="#">Submenu 5</a></li>
<li><a href="#">Submenu 6</a></li>
<li><a href="#">Submenu 7</a></li>
</ul>


<h3 class="menuheader submenuheader">Mainmenu 3</h3>
<ul class="submenu_">
<li><a href="#">Submenu 1</a></li>
<li><a href="#">Submenu 2</a></li>
<li><a href="#">Submenu 3</a></li>
</ul>


<h3 class="menuheader submenuheader">Mainmenu 4</h3>
<ul class="submenu_">
<li><a href="#">Submenu 1</a></li>
<li><a href="#">Submenu 2</a></li>
<li><a href="#">Submenu 3</a></li>
</ul>



</div>

when I click on the link "http://localhost/2.php?submenuheader=1", main menu 2 => expand
but I want deleted ?submenuheader=1 but still show mainmenu 2, yes or no?
I found one web site home.thegioihoanmy.vn to do that...