Create A Cool Context Menus
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. The ContextMenu plugin offers numerous options like actions, menu and offsets as well as onClick and onHide. Beyond these initial options, the ContextMenu class also provide some useful methods, disable, enable, disableitem and enableitem.
The most dynamic part of the ContextMenu instance is the “actions” option, where you define what action should be taken per menu item. The action is passed the element clicked on and the reference to the context menu. My above example defines the copy action. When you click the “Copy” context menu item, I turn the text color green and disable the context menu. You may define one action per menu item.
Website & Download: MooTools ContextMenuDemo: See the demo

Now What?
You might be interested in these related posts.






No Comments
Leave a Comment




Poll
Subscribe to Fish in the River, and we'll deliver you the newest fresh inspirational resoueces for free.


Please feel free to let us know what you think.