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:08
_suboffset what sub-meun ?
Poster: TheNinthPlayer
Dated: Thursday October 2 2003 - 15:01:09 BST
Okay so I was looking at the command _suboffset and I'm curious as to what menu is being set. Its when there a menu inside a menu right. This command has nothing to do with the first menu right?
If that is true how can I make the first menu start a few pixels down from the horizontal menu bar?
Poster: Hergio
Dated: Thursday October 2 2003 - 15:51:38 BST
_suboffsetXXXX is how far from the parent the child menu should render from its default position which is right off its tail end. If you have a milonic menu as your VERY first menu, then setting this property will make all submenus that come off of your first menu (and subsequent menus) offset by said amount. FYI, _suboffset is a global parameter so all submenus will be offset by the amount you specify, not just one level of menus.
Now if your horizontal menu bar is NOT a milonic menu, maybe its a table of images, you will just have to tell the submenus to position themselves accordingly using their own respective top and left coordinates.
Hope I understood your question, if you have a URL, it may help us understand more and figure out exactly what it is you want to do.
Poster: TheNinthPlayer
Dated: Thursday October 2 2003 - 18:48:46 BST
http://www.infinity-zero.net/test/
If you click the link above, and hover the mouse over the menu bar the menu pops down. How can I make that menu popup about 3 pixels down from whete it is now?
Poster: Hergio
Dated: Thursday October 2 2003 - 21:51:51 BST
Hmm, now I am confused. Andy, this person has
Code:
_subOffsetTop=50 // Sub menu top offset
in their menu_data code and yet the subs are stuck to the bottom of the main menu bar (as they should if you didnt want any offset). Whats up with that? Do I not understand suboffsettop as I should?
Poster: 4viggo
Dated: Thursday October 2 2003 - 23:48:52 BST
I found the _suboffset parameter on a horizontal menu to work only for the sub-sub menu (if that's what we can call it) So if you add a sub - sub menu it will come in to play
If you want your sub menu's to move let's say 10 px down you would have to offset them according to your main menu (which is 65px down).
So what I do is trowing in a: top="offset=21"; on each of my sub menu's and then let the _suboffset parameter place the sub - sub menus.
I'm not sure if it was designed this way but at least it works
regards
4viggo
Poster: Hergio
Dated: Friday October 3 2003 - 2:15:42 BST
Duh! How stupid of me. Yeah you can use top="offset=10"; to make them bump down. What a total blank I was drawing when I posted that last one. I have used that approach before too. Nice job, thanks for the clarification! So try the offset thing 9thPlayer.
Poster: kevin3442
Dated: Friday October 3 2003 - 2:33:25 BST
Just to add...
The reason the second level menus (first submenus) in TheNinthPlayer's example are not "bumped down" is because of the Shadow effect (or lack of it) in the menu syle's overfileter: notice that the strength parameter is set to 0 for the Shadow() effect in the overfilter, effectively turning the drop shadow off. In the horizontal example that we typically download with the updates, it is this drop shadow effect that causes the second level menus to be offset downward (by the number of pixels specified in the Shadow's strength). You'll notice, for example, if you run the same sample in browsers that don't support these effects (e.g. NS7), the submenu opens directly on the lower edge of the main menu.
The global _subOffsetTop and _subOffsetLeft parameters appear to exert their effect on submenu positions only when the submenu is opened from a menu item that is part of a vertical menu. To bump a submenu up, down, left, or right, from its default opening position when called from a horizontal menu, you could, as Dave pointed out, use the "offset=nn" option in the top and left menu properties in the submenus themselves.
Hope that helps (and hope it made sense!),
Kevin
Poster: TheNinthPlayer
Dated: Friday October 3 2003 - 2:43:17 BST
thxs it worked. but that raises another question.
How do completely disable the shadow effect? after settings its strength and direction to 0. it still leaves a small line of what at the top.
I chaned my web page attributes to show this. if u load the website again. You will not notice a very faint white above the top of the menu bar. So is there a way to remove that completetly?