open drop down under vertical selection

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
fastflagsrt4
Advanced
Advanced
Posts: 13
Joined: Tue Jun 27, 2006 7:53 pm
Location: Maryland

open drop down under vertical selection

Post by fastflagsrt4 »

is there a way to open the popout below the vertical selection instead of beside it?

also, how do you setup the tooltips? I have the tooltips.js in the same directory as the rest of the files.

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

Post by Ruth »

Hi,

If you have a vertical menu and want the drop to be below it's parent you might want to use the collapsible menu.

http://milonic.com/treemenu/

It is the top one you want, the collapsible. If that is what you want you can download it, but make sure you also click the link at the bottom of that page and download the newest treemenu.js file.

I believe the treemenu.js comes in the download but it is not the newest and to work, it must be the newest.

Also, if you don't care about having a treemenu and just want the submenu to open 'down' below your main item in the vertical menu, you can fine tune the position by using top="offset=x px"; left="offset=y px"; where x and y are the number of pixels necessary to get it to move where you want it. You can use negative numbers for the left, so if you main menu item is say 100px wide, then you could do left="offset=-100"; which should shift that submenu left by 100 px. That means you'd have to do that with every one of the submenus that opens from a main menu item, and especially for the top position of the submenu.

NOTE: if someone changes font size and that changes the main menu width and item height all your offsets will be wrong.

Ruth
Post Reply