contextmenu is a jQuery plug-in for context menu (right click menu).
You can change menu style with plugin options easily.
- Chromium (14.0.835.202),
- Google Chrome (15.0.874.120),
- Mozilla Firefox (3.6.17),
- Opera (11.52)
- Internet Explorer (8.0.6001)
You can check it on gokercebeci.com/dev/contextmenu.
<script src="jquery.contextmenu.js"></script>
<link rel="stylesheet" href="contextmenu.css" />
<script>
$(document).contextmenu({
menu: {
'custom link 1' : 'http://...',
'custom link 2' : 'http://...'
}
});
</script>
init : function(){}, // Optional init function.
start : function(){}, // Optional start function
finish : function(){}, // Optional finish function.
ctrl : false, // Optional. If you right click with ctrl key
the contect menu do not show. [true,false] Default value is true;
style : 'dark', // Optional class name.
menu : {} // Required menu object.
It is under MIT License.