- Create Account

Make menu appear under cursor on click

Forums > Cascading Popup Menus: Help > Make menu appear under cursor on click
Author
Message

1) jets Group: Members
Posts: 2 Joined: 30 Nov 2007 Location: IP: 90.184.--.--
I have tried to find out whether this is possible, but can't find any examples. Hope you can help :-)

I  need to have the menu to only appear when you click the mouse on a div (pseudo-code: <div .. onclick=show_menu();  ...>). The menu needs to popup under the cursor.

It's  kind of like how a right-click menu works in a browser window - just with normal left-click and a js onlick event instead.

Is this possible with Cascading Popup Menus?

Thanks.

2) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 203.109.--.--
You could do it with a little extra code, but why not try a script designed specifically for this purpose? I would recommend my "SuperNote" script which can happily popup notes/menus when you click/mouseover elements.

Good luck - Angus.

3) jets Group: Members
Posts: 2 Joined: 30 Nov 2007 Location: IP: 90.184.--.--
Thanks for the reply. I'll take a look at SuperNote!

Post a Reply:

You are not logged in, and will be posting anonymously as a guest. If you want to post using an account, please login at the top of this page.