Default menu appearance on centered menu

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
chinaski2
Advanced
Advanced
Posts: 10
Joined: Wed Sep 07, 2005 6:47 pm

Default menu appearance on centered menu

Post by chinaski2 »

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
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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://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
chinaski2
Advanced
Advanced
Posts: 10
Joined: Wed Sep 07, 2005 6:47 pm

Post by chinaski2 »

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.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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
chinaski2
Advanced
Advanced
Posts: 10
Joined: Wed Sep 07, 2005 6:47 pm

Post by chinaski2 »

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.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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
chinaski2
Advanced
Advanced
Posts: 10
Joined: Wed Sep 07, 2005 6:47 pm

Post by chinaski2 »

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:
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.
Post Reply