MooTools ContextMenu Plugin

Posted by: FitR on March 27th, 2009 (703 views | No Comments) 1280

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.

ContextMenu

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 ContextMenu

Now What?

You might be interested in these related posts.

Help us spread the word across!

Sponsored by
About the Author

Fish in the River delivers a fresh inspiration source for designers, developers and marketers but also anyone who wants to be inspired everyday.

Visit FitR's Homepage       Visit FitR on Twitter

Comments No Comments

Leave a Comment
Would you like to be the first to leave a comment?
Please feel free to let us know what you think.

Leave Comment Leave a Comment

Want a Personal Avatar? Visit www.gravatar.com to get your own gravatar, a globally-recognized avatar.
Submit a Comment
Change will not come if we wait for some other person or some other time. We are the ones we've been waiting for. We are the change that we seek.
{ Barack Obama }