Menu offset in table cell

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
raemacleman
Beginner
Beginner
Posts: 8
Joined: Tue Jul 25, 2006 11:57 am

Menu offset in table cell

Post by raemacleman »

Hi,

I've used the menu successfully since January 06 by adding the JS to a table cell - works fine. I've just written a web based admin panel to build the menu on the fly from an SQL Server database, and the resulting menu (which should be sitting neatly in the topmost table cell) is offset to the right and down in the table cell. The JS generated by my scripts is almost identical to the original JS (there are some exceptions - for example, I've used numeric menunames, but nothing which would result in the menu offset, I think).

My menu can be viewed here...

http://www.world-challenge.co.uk/milonic/problem.html

I'm using the standard menu.js, milonic_src.js, mmenudom.js and mmenuns4.js files.

Can anyone see what might be causing the offset?

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

Post by Ruth »

Hi,

You're generating a top and left position, without that the menu doesn't have the offset

Code: Select all

with(milonic=new menuname("Main Menu")){
style=menuStyle;
alwaysvisible="1";
orientation="1";
position="relative";
Ruth
raemacleman
Beginner
Beginner
Posts: 8
Joined: Tue Jul 25, 2006 11:57 am

Many thanks...

Post by raemacleman »

... it's been a long day. I should spotted that - thanks.

Rae MacLeman
Post Reply