You may use the AllWebMenus "Manually Trigger Groups as popup menus" feature to replace
the default right-click menu used by the browser with a popup menu of yours!
(this feature is supported by IE 5+, NS 6+ and Mozilla 1+ browsers only)
Right-click anywhere
on this page to view
a popup menu appearing at the cursor position.
How it works:
- Set the <Positioning> property to "Manually Trigger Groups as popup menus" before you compile the menu.
- Compile the menu as popup_rightclick.js and
link it to your HTML page.
- Place the following code in the HEAD section
of your HTML page:
<script>
function awmShowMenu(x,y,z,v){}
document.oncontextmenu = rightclickmenu;
function rightclickmenu(e) {if (document.all) awmShowMenu('popup_rightclick',event.clientX+document.body.scrollLeft,event.clientY+document.body.scrollTop); return false;}
if (navigator.userAgent.indexOf('Gecko')>-1) {awmShowMenu('popup_rightclick',e.pageX,e.pageY); return false;}}
</script>
Well done! Now you have a popup menu appearing whenever
a visitor right-clicks on the page. |