ContextMenu 1.1

ContextMenu is a highly customizable, compact context menu script written with CSS, XHTML, and the MooTools javascript framework. ContextMenu allows you to offer stylish, functional context menus on your website.



Details

Author
David Walsh
Current version
1.1
GitHub
darkwing/ContextMenu
Downloads
4581
Category
Interface
Tags
Report
GitHub Issues

Releases


Dependencies

  • core/1.2.1: *
  • more/1.2.1: Fx.*

How to use

ContextMenu can be initialized at any time but is generally initialized at the top of the document during the page's normal load. There are no required arguments -- only options.

HTML

Javascript

var context = new ContextMenu({
    targets: 'a', //menu only available on links
    menu: 'contextmenu',
    actions: {
        copy: function(element,ref) { //copy action changes the element's color to green and disables the menu
            element.setStyle('color','#090');
            ref.disable();
        }
    },
    offsets: { x:2, y:2 }
});

For specific usage and options, please read the documentation or visit http://davidwalsh.name/js/contextmenu


Discuss

A note on comments here: These comments are moderated. No comments will show up until they are approved. Comments that are not productive (i.e. inflammatory, rude, etc) will not be approved.

Found a bug in this plugin? Please report it this repository's Github Issues.

blog comments powered by Disqus