Search Menu

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
clooney
Beginner
Beginner
Posts: 2
Joined: Wed Nov 09, 2005 2:59 pm

Search Menu

Post by clooney »

Hello

I want to create a menu like this: The mainmenu is vertical and the submenus to the mainmenus should be show under the last mainmenu. The Submenus should be show on mouseover over the mainmenu and on click it stay under the last mainmenu, also vertical. It's is possible something like that with a Menu form milonic?

thanks for your help and best regards

clooney[/img]
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi clooney,

Do you mean something like:

MENU
item1
item2
item3
_____
all submenus open here

Ruth
clooney
Beginner
Beginner
Posts: 2
Joined: Wed Nov 09, 2005 2:59 pm

Post by clooney »

I mean something like this:

TEAM
NEWS
CONTACT
LINKS
FAN
SHOP

1. TEAM
2. TEAM
...

with mouseover on TEAM, i get under the last item the submenu for TEAM. mousover on NEWS, i get the submenu for the News and so on. on click, the submenu stays under the last menupoint an i can click on the submenu items.

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

Post by Ruth »

There are ways you can do that. You can open submenus as pop ups and position them to an image. So if you placed an image below the main menu, and used popup to open the submenus they would open below the main. To get them to be 'fixed' until you use them you would set them to openonclick=1;keepalive=1;closeonclick=1; and, because you opened them as keepalive, you would need the following function at the top of your menu data file

Code: Select all

function mm_closeClickedMenu() 
{ 
  menuDisplay(_mi[_itemRef][0], 0); 
} 
and you'd need an item coded with a little x image, or with the words close menu. The onbgcolor would be set to be the same as the offbgcolor so it didn't change when you moused to that item to close the menu if you were using an image. It doens't have to be, but it looks better.

Code: Select all

aI("image=close.gif;imagealign=right;closeonclick=1;separatorsize=0;onbgcolor=#73767E;clickfunction=mm_closeClickedMenu()");
If you actually have a page we can see we would be able to give you a more specific answer based on your layout.

Ruth
Post Reply