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:33

Menu appearence in point where mouse was clicked


Poster: austymenko
Dated: Thursday July 4 2002 - 18:46:56 BST

Does anybody know, how to force menu to appear on the point where left mouse button mouse was pressed ?

For example:
addmenu(menu=[
"menu1",
100, //top
40, //left
50, //width
...
])

it means that menu will appear on the point X=40, Y=100.
But for example I loaded the page, pressed(clicked) left mouse button on the point X=300, Y=400 and want menu to appear in this point. How should I do this ?

thank you in advance
Alex


Poster: Andy
Dated: Thursday July 4 2002 - 18:48:37 BST

Hi,

try the popup() function like this

popup("menu1",1)

The second parameter indicates opening the menu at mouseXY

- Andy

thank you Andy, it helped ;)


Poster: austymenko
Dated: Friday July 5 2002 - 9:48:37 BST

thank you Andy, it helped ;)