Show a submenu when a page opens

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
scottswo
Advanced
Advanced
Posts: 12
Joined: Fri Nov 21, 2003 10:21 pm

Show a submenu when a page opens

Post by scottswo »

Is it possible to set a particular submenu (1st sub-levl) as "active" so that it already appears when the page opens? I am trying to get a similar effect to "keepalive=1", but I want a particular submenu to be viewed by the user without them having to mouseover or click on any menu item.
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

submenu vs second main menu

Post by Migru »

Hi,
Maybe that there is a more elegant solution for this, but why not setting up a 2nd main menu ?

So, I would solve this by placing a second main menu with just one item exactly there, where I would like to have it, designed by its one and only style, looking like a submenu of menu no 1.


Michael
scottswo
Advanced
Advanced
Posts: 12
Joined: Fri Nov 21, 2003 10:21 pm

Post by scottswo »

I was hoping to be able to do this as a second level menu item, as the menu is dynamically driven from a database.

Is it possible to make a function call to the menu code that opens specific submenus on mouseover? I could then insert this call dynamically, opening the specific 2nd level submenu that I want based on the page that the user is on. By inserting the call when the page is created and sent to the user, I can then have the appropriate menu item open when the page is loaded.

Thanks for any help!

Scott
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

There is a module, openmenusbyurl.js which will open submenus on their corresponding pages. So, if you only had that module on the page on which you want that particular menu to open then that woudl be the only one it would open. If you put it no all pages, it would open all of the submenus when you were on their corresponding pages.

It's down by the bottom, Automatic Menu Opening Module

http://milonic.com/menumodules.php

Ruth
scottswo
Advanced
Advanced
Posts: 12
Joined: Fri Nov 21, 2003 10:21 pm

Post by scottswo »

Thanks Ruth,

I think that's what I'm looking for.

Scott
Post Reply