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: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:11

Offset When Using popup('menu', 1)

Poster: DMLCo
Dated: Friday September 19 2003 - 16:38:59 BST

Hi there!

Is it possible to have an offset while using the popup('menu', 1) syntax? If you go here,c,69,2

You can see what I mean: I want the menus that appear when you go over DMLCotnent or Solutions to appear a fixed # of pixels below wherever the mouse is.

I can't use absolute positioning because, on different pages, the list of submenu items is variable, and may go to two or even three rows.


Poster: Maz
Dated: Friday September 19 2003 - 17:21:13 BST

I probably can't answer this,
unless you know how to add styles:



Poster: Hergio
Dated: Friday September 19 2003 - 19:12:40 BST

You should use absolute positioning in this case. Your pages are set up so they dont move when you resize the window and arent based on percentages. So basically figure out where the menu for 'Benefits' would look best, and give that menu top and left coordinates for that spot...and set its alwaysvisible to zero. Then the Benefits text should call popup("benefitsmenu") with no second parameter which will just make the menu show up directly underneath the benefits text...same for the others.
I can't use absolute positioning because, on different pages, the list of submenu items is variable, and may go to two or even three rows.
Not sure why there is a problem. Even if the menus had 10 rows, or 10 levels of menus, it'd be ok...the menu will make them display in a manner thats easy to see and stay on the page. Oh and by the way, pput your offsets back, all your submenus are appearing WAY below were they should be. I know you did this on purpose, but dont forget about it..hehe

Poster: DMLCo
Dated: Friday September 19 2003 - 19:17:58 BST

Two things ...

I don't think I was clear enough. When I said 10 rows, I meant rows that stack horizontally, so the absolute positioning won't work. Check out,c,71,2,0 for an example.

And, what browser are you using? I am on IE 6.0.2 and the offset is having absolutely _no_ impact.


Poster: Hergio
Dated: Friday September 19 2003 - 20:02:59 BST

I am using IE6 on Win2000. You must have changed something because on this page,c,23,2,21 the Support menu was all over the place. Now its back.

Are those menus created dynamically or will that page with that URL always have those 5 menus with 4 on the top and 1 on the bottom. Because then you would just code the menus to appear directly under the link they are assigned to.

Also if you set the sub offset for the popup to say, -20px, that would mean the submenu for, say Downloadable Features, would show up below that item some amount (-20px below the mouse) which might put it on top of Image Management. But if part of image management was between your mouse and the submenu, when you went to go into the submenu, Image Management's sub would pop up...that could get real annoying.

Your best bet would be to use absolute. When you hover over Downloadable files, the popups coordinates would place it directly beneath Downloadable Files, but covering Image Management, great! And if you hover over Image Management, that menus coordinates would place it directly under Image Management. As long as your menu and pages dont resize dynamically, you can use the absolute because the menu should always display directly underneath the menuitem.

Poster: DMLCo
Dated: Friday September 19 2003 - 20:08:26 BST

Can't do it that way: all of the pages are dynamic. Customers who use the CMS product can set it up in a virtually infinite number of ways: I understand the utility of the fixed positions, but it's not an option.

There seems to be a strange discrepancy, though: when I had


you said the menu offset was "working." It never made a difference here--not sure if that is browser version or not. I just tested on a W2K/IE box here, and the offset code seems to not do anything there, either.

The goal is to only use a small bit of offset: just enough to reinforce to the user that the menu title itself is also a viable link.