concertina/accordian menu

I've found a jquery menu I'd like to used but it doesn't seem to be compatible with IE6 or IE7.
It is this one:

Do you know of any which is similiar
 - submenu's remain open until they are closed
 - maintains state from page to page.  

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.


Check the below url ;

I think this is what your looking for

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Steve KrileCommented:
There are two different requirements here.  First, using jquery makes a menu like this trivial.  I've attached a simple example.  So, that part should be easy enough for you to roll your own.  

The second part of you request is to maintain state from page to page.  That's a bit less trivial, but doable.  

First, here is a working "clean" menu.

I'll post a method for "maintaining" state in a moment.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<script type="text/javascript" src=""></script>

		a {
		a:hover {
			background:blue;color:#fff;}, ul.submenu {
			list-style-type:none;} {
			border:solid 1px gray;
		} li {

		ul.submenu {display:none;}

		ul.submenu li {



		<ul class="menu">
				<a href="#">Menu 1</a>
				<ul class="submenu">
					<li><a href="test.html">Go to Test Page 1</a></li>
					<li><a href="test3.html">Go To Test Page 3</a></li>
					<li><a href="#">Sub Item 3</a></li>
				<a href="#">Menu 2</a>
				<ul class="submenu">
					<li><a href="#">Sub Item 1</a></li>
					<li><a href="test2.html">Go To Test Page 2</a></li>
					<li><a href="#">Sub Item 3</a></li>

	<script type="text/javascript">
		$(" > li > a:first-child").click(function(e){


Open in new window

Steve KrileCommented:
Here is a collection of three pages that illustrate keeping "state" by examining the href of a link and comparing it to the page url.  This method isn't perfect, but it works pretty good.

The code below is the trick to examining the page's current href (stripping out the http:// bits, and the path information to get at just the page name.
function getPageName() {

			var page_name_string = location.pathname.toString();
			var page_name_array = page_name_string.split('/');
			var page_name = page_name_array[page_name_array.length - 1];

		return page_name;


Open in new window
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.