Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:33
Default menu appearance on centered menu
Poster: chinaski2
Dated: Wednesday September 7 2005 - 19:12:58 BST
I am trying to get a submenu to auto appear for it's particular section but where none of it's items are active yet.
Please see:
http://64.175.2.99/DR/menu/second.htm
and
http://64.175.2.99/DR/menu/tert.htm
for examples.
The first is where I'd like to have the auto submenu. The second example it works as it has an active item. I have tried numerous examples here but they have all failed or generated errors.
TIA
Poster: Ruth
Dated: Wednesday September 7 2005 - 19:58:39 BST
There is a module called openmenusbyurl Its purpose is to have submenus automatically open when you are on the page for the parent item that calls that submenu.
http://www.milonic.com/menumodules.php Its down about half-way.
There is also a demo to see it in action
http://support.milonic.com/demos/openme ... /index.htm
EDIT: oops. You have that on there. Could you explain more fully what you want?
Ruth
Poster: chinaski2
Dated: Wednesday September 7 2005 - 20:19:15 BST
I'd like for the submenu called "Mountain" to appear by default on the first example like it does on the other, but without the highlighted item in the sub menu.
Poster: Ruth
Dated: Wednesday September 7 2005 - 20:57:33 BST
The only way I can think to do that is to not have pagematch set in the submenu styles. But that means that there will never be active page highlighting except on the main menu.
Ruth
Poster: chinaski2
Dated: Wednesday September 7 2005 - 21:53:31 BST
So something like the mm_showMenu script wouldn't work for an onLoad event?
I have tried configuring it with an OnCLick event but it generates errors.
Poster: Ruth
Dated: Wednesday September 7 2005 - 22:10:54 BST
I'm sorry, I can't help on that. I don't know anything about scripts or functions. You might post another topic requesting help with your function so someone with knowledge in js might help.
Ruth
Poster: chinaski2
Dated: Wednesday September 7 2005 - 22:34:09 BST
I have gotten closer by using the pagematch but if I don't have any items with no pagematch set then none show up.
If you look at http://64.175.2.99/DR/menu/second.htm
You can see that the first 2 items have no pagematch set so they show up as selected. If I set a pagematch the whole menu disappears.
Maybe a kludge would be a 1 pixel wide item that was tranparent?
edit:
I found this site:
http://www.danforthdev.com/
From this thread you were involved in:
http://www.milonic.com/forum/viewtopic.php?t=5867
I think it will work. I am limited by space but I will have to work that out unless I can find another solution.