Menu in Table Problem

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
jshepherd
Beginner
Beginner
Posts: 6
Joined: Tue Oct 24, 2006 8:35 am

Menu in Table Problem

Post by jshepherd »

I’ve created a menu within a table and all seems to work well apart from the

_subOffsetTop=0 // Sub menu top offset
_subOffsetLeft=5 // Sub menu left offset

commands now seem to have no effect. The submenu does appear under the menu but is offset by 1 or 2 pixels and I seem to have no control to change it.
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

The _subOffsetTop and _subOffsetLeft global properties do not normally apply to submenus opened from a horizontal main menu (which is what I assume you're doing, given the behavior you're reporting).

If you want to offset the position of a submenu that opens from a horizontal parent menu, then you can apply the offset directly to the menu, using the top and left menu properties. E.g.,

Code: Select all

left="offset=-2";
will offset the menu's position 2px to the left.

Hope that helps,

Kevin
jshepherd
Beginner
Beginner
Posts: 6
Joined: Tue Oct 24, 2006 8:35 am

Post by jshepherd »

Thank you.

That solved the problem straight away.
Post Reply