You can replace the default right-click menu of your browser with your own menu by using AllWebMenus DHTML menu maker!
Just be aware that this feature is supported by IE 5+, NS 6+ and Mozilla 1+ browsers only. In older browsers the default browser menu will appear instead.
To use this feature please follow the instructions below:
• First, you should not forget to set the <Positioning> property to "Manually Trigger Groups as popup menus" before you compile the menu.
• Compile the popup menu (eg: as popup_rightclick.js) and link it to your HTML page.
• Open your web page(s) and include the following HTML code in the HEAD section (between the <head> and </head> tags):
<script>
function awmShowMenu(x,y,z,v){}
document.oncontextmenu = rightclickmenu;
function rightclickmenu(e) {if (document.all) {awmShowMenu('rightCLICK',event.clientX+document.body.scrollLeft,event.clientY+document.body.scrollTop); return false;}
if (navigator.userAgent.indexOf('Gecko')>-1) {awmShowMenu('rightCLICK',e.pageX,e.pageY); return false;}}
</script>
Related posts:
- Menu first appears in the top-left corner and then jumps to correct position. Any suggestions?
- How to apply browser specific offsets to my menu.
- How to create a multi-language menu setup (PHP example)?
- AllWebMenus supports Google’s newly released “Chrome” browser!
- How to customize the browser window through the Link Target property.