Ignasi Giró wrote:
Hello everyone
I wonder if exists any way of creating a popup menu (ContextMenu) where
every option has an own icon.
Thanks!
Ignasi,
with client side js it's a simple matter of intercepting the
oncontextmenu event (either from the document or element level - the
event bubbles). Once you have that it's up to you what you display in
place of the context menu. Could be tables, divs, or my personal
favourite for semantic markup DL/DT/DD. The event object can be queried
to pick up the x/y location of the screen the menu should be placed.
From the intercepting function, simply return true or false to allow
the normal context menu to appear.
Hope this helps.
Ric.