PDA

View Full Version : please help newbie with this collapsible menu.


devondago
02-17-2003, 02:43 PM
please help me with an expadable/collapsible menu.
I have expadable/collapsible menu(9 buttons)that does the following. when you mouseover one of the menu items a submenu opens vertically. The issue is that once you click on one of those sublinks and you are taken to that page the menu closes. I want the menu to remain open
when you are taken to a new page of a submenu.
exmaple oif what my menu looks like http://www.mazier.org/Project/Proj_...j_07/proj_7.htm
In my home page I added the code for the drop down menu.
I know that for all the child pages I need to add logic tying page ids to divs to call the function generated by the editor used to create the dropdown menu.
on the home page where this menu resides I have the code that triggers the motion of the drop down menu on all the
child pages i have the same code as well but i added a line that seems to make it work. (Test_trigMenu1('Aboutmenu',1) this is the name of the
main menu and the first submenu. But how can I make the others ones work? Can someone help me with a function so the menu remain open when you are
in set of submenu pages? here are my other sub menu names.
Test_trigMenu1('Bhmenu',1);
Test_trigMenu1('Cancermenu',1);
Test_trigMenu1('Commmenu',1);
Test_trigMenu1('Cvimenu',1);
Test_trigMenu1('Fbmenu',1);
Test_trigMenu1('Hafmenu',1);
Test_trigMenu1('Nsmenu',1);
Test_trigMenu1('Wsmenu',1);
Any help on this would be really appreciated.


__________________



Last edited by lari on 14-Feb-2003 at 16:

arnyinc
02-17-2003, 04:39 PM
The link doesn't work.

When you click the link and are taken to the new page, is this in a frame or a new window? I don't see a way of "honestly" keeping the menu expanded otherwise. You might have to remember the position and re-open the menu.

devondago
02-17-2003, 04:51 PM
here is another menu you can see for the purposes of what i am trying to do. on the left hand side....
http://simplythebest.net/info/dhtmscript15.html
..when the menu expands and you see the sub menus if someone clicks on one of those sub menus then i want that menu to remain open...
I start it out using this
MHS_trigMenu1('Aboutmenu',1); just that line to the code and I can actually see that menu remain open while i click on the sublinks for that particular menu...But for the rest of the menus I suppose i would need a fuction so that is what i need any idea of how i can write that fucntion...?
all help will be immensely appreciated...