Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Wednesday July 18 2012 - 06:07:46

Feature suggestion


Poster: bjorndottir __at__ hotmail.com
Dated: Monday January 28 2002 - 20:08:29 GMT

I have a suggestion that might be very interresting for the Milonic DHTML Menu.

My website layout is contained in a 760 pixel-wide centered table. The menus are made visible when an image is hovered. The problem I have is that it is very hard to get the menus to show up at the right location.

I have been able to do this by using "center" as the alignment and using a offset for my menus.

For example, center all menus but for menu1, use offset=-300.

The problem is, when the user resizes the window too small, the menu will show up OUTSIDE the viewable area. Let's do the math...

Window width = 500

Centered minus Offset = (500 / 2) - 300. Menu appears at -50.

I have a suggestion to resolve this problem. Offset should be calculated at runtime using the following script:

function WindowWidth() { if (document.body