Click Menu using Jquery

Click Menu using Jquery

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...
310 views

A clickable dropdown menu with (theoretically unlimited) submenus made out of an an unordered list. It’s behaviour is like an application menu (click to open, click to close, stays open even after hovering elsewhere).

  <script type="text/javascript">$(document).ready(function()
{
	$('#list').clickMenu();
});
</script>

<ul id="list">
	<li>Item one
		<ul>
			<li>Subitem one</li>
			<li>Subitem two</li>
		</ul>
	</li>
	<li>Item two</li>
</ul>
 

More Examples:

 <script type="text/javascript">
$(document).ready(function()
{
    $.fn.clickMenu.setDefaults({arrowSrc:'arrow_right.gif', onClick: function(){/*do something*/}});
    $('selector1').clickMenu(); /* use default values */
    $('selector2').clickMenu({arrowSrc:''}); /* dont use an arrow for submenus */
    $('selector3').clickMenu({subDelay: 1000, mainDelay: 500}); /* slow menu */
});
</script>
  

Available options:

* onClick – function – callback function triggered when a list item is clicked – returning false will stop the default action of the clicked element
* arrowSrc – string – url of the image to be used as an arrow indicating a submenu (e.g. “images/somearrow.jpg” or an empty string if you don’t want an arrow)
* mainDelay – string or number – the time to wait before starting the fadein after hovering over a main menu item (”slow”, “normal” or “fast” or the time in milliseconds – e.g. 1000)
* subDelay – string or number – the time to wait before starting the fadein after hovering submenu item (”slow”, “normal” or “fast” or the time in milliseconds – e.g. 1000)

Demo: http://p.sohei.org/stuff/jquery/clickmenu/demo/demo.html
Download:

Source: http://p.sohei.org/jquery-plugins/clickmenu/

http://www.ajaxupdates.com/wp-content/plugins/sociofluid/images/stumbleupon_32.png http://www.ajaxupdates.com/wp-content/plugins/sociofluid/images/delicious_32.png http://www.ajaxupdates.com/wp-content/plugins/sociofluid/images/blinklist_32.png http://www.ajaxupdates.com/wp-content/plugins/sociofluid/images/furl_32.png http://www.ajaxupdates.com/wp-content/plugins/sociofluid/images/technorati_32.png http://www.ajaxupdates.com/wp-content/plugins/sociofluid/images/magnolia_32.png http://www.ajaxupdates.com/wp-content/plugins/sociofluid/images/google_32.png http://www.ajaxupdates.com/wp-content/plugins/sociofluid/images/myspace_32.png http://www.ajaxupdates.com/wp-content/plugins/sociofluid/images/facebook_32.png http://www.ajaxupdates.com/wp-content/plugins/sociofluid/images/sphinn_32.png http://www.ajaxupdates.com/wp-content/plugins/sociofluid/images/mixx_32.png http://www.ajaxupdates.com/wp-content/plugins/sociofluid/images/twitter_32.png

Related Listings:

  1. ClickMenu Plugin for JQuery A clickable dropdown menu with (theoretically unlimited) submenus made out...
  2. ColumnHover JQuery Plugin Script A jQuery-plugin that highlights whole columns in a table when...
  3. Hwy jQuery ListMenu Plugin This jQuery plugin, developed in the iHwy Labs, allows you...
  4. Clean Attractive Vertical Menu using jQuery It looks something like a lava lamp menu (Simple Lava...
  5. Good Looking Floating Menu with jQuery Easing A floating effect using jquery.easing, animate top value and a...

Do you like this post?

Email:     

Tags: , , , , , , ,

1 Comment »

  1. avatar comment-top

    Is there a quick way to have the menu trigger on a mouseover, instead of a click?
    (of course, after i implemented this, the client doesn’t want to have to click). i tried to modify the .js, but ended up breaking it.

    comment-bottom

RSS feed for comments on this post. TrackBack URL

Leave a comment



Web Design & CSS (Templates) - TOP.ORG