Hi everyone
I'm trying to do a pretty basic thing I guess, but can't seem to figure out how.
I have an accordion javascript/css menu in two levels. It works. When the menu open and I click on a second level menu link I want to open the same first level menu when the site has loaded the new page. Right now the accordion closes again. It's the javascript that handles the opening and my codes look like this.
<script type="text/javascript">
var slider1=new accordion.slider("slider1");
slider1.init("slider", 0, "open");
</script>
It's the second parameter in the slider1.init function that tells which menu to open in the accordion. So basically what I would do is to create a function, that finds the parent, count through the menus and return the correct number.
Any help is really appreciated.
Joel