2011年10月30日 星期日

Fw: Superfish v1.4.8 – jQuery menu plugin by Joel Birch

http://users.tpg.com.au/j_birch/plugins/superfish/#getting-started


Superfish v1.4.8 – jQuery menu plugin by Joel Birch


Superfish is an enhanced Suckerfish-style menu jQuery plugin that takes an existing pure CSS drop-down menu (so it degrades gracefully without JavaScript) and adds the following much-sought-after enhancements:
  • Suckerfish-style hover support for IE6. The class added is “sfHover” by default but can be changed via the options object,
  • Timed delay on mouseout to be more forgiving of mouse-piloting errors. Default is 800 milliseconds but can be changed via the options object
  • Animation of sub-menu reveal. uses a fade-in by default but can be given a custom object to be used in the first argument of the animate function. The animation speed is also customisable but is set to “normal” by default
  • Keyboard accessibility. Tab through the links and the relevant sub-menus are revealed and hidden as needed
  • Supports the hoverIntent plugin. Superfish automatically detects the presence of Brian Cherne’s hoverIntent plugin and uses its advanced hover behaviour for the mouseovers (mouseout delays are handled by Superfish regardless of the presence of hoverIntent). Using this is only an option, but a nice one. The examples on this page are using hoverIntent. If for some reason you want to use hoverIntent on your page for other plugins but do not want Superfish to use it you can set the option disableHI to true.
  • Indicates the presence of sub-menus by automatically adding arrow images to relevant anchors. Arrows are fully customisable via CSS. You can turn off auto-generation of the arrow mark-up via the “autoArrows” option if required.
  • drop shadows for capable browsers – degrades gracefully for Internet Explorer 6. Can disable shadows completely via options object.
  • Can show the path to your current page while the menu is idle. The easiest way to understand this is to view the nav-bar example.
  • Optional callback functions. The 'this' keyword within the handlers you attach will refer to the animated ul sub-menu. From version 1.4 there are now three other optional callbacks allowing for further enhancements and functionality to be added without needing to alter the core Superfish code.

Fw: apycom

http://apycom.com/
Tool to create your own menu.

Fw: How to write an Animated Drop Down Menu with jQuery

http://clarklab.com/posts/animated-drop-down-menu-with-jquery/

Animated Drop Down Menu with jQuery



Drop down menus are a really convient way to fit a large menu into a really small initial space. For a long time people have just used a form element for standard drop downs, but with minimal effort you can create a much slicker effect using jQuery and CSS.

Step 1: The HTML

Before we can do anything, we need to link our CSS file and our jQuery file in the header our of HTML document:
<link href="css/style.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="jsfiles/jquery.js"></script>
These two files will contain our styles and the javascript effect library (duh), but before we can style or animate anything, we need to build the list itself. We are going to use a simple unordered list:
<ul class="menu_body"> <li><a href="#">About Us</a></li> <li><a href="#">Portfolio</a></li>  <li><a href="#">Clients</a></li> <li><a href="#">Blog</a></li> <li><a href="#">Support Forums</a></li>  <li><a href="#">Gallery</a></li> <li><a href="#">Contact Us</a></li> </ul>
What we have here is as simple as it looks. We have an unordered list with the class of "menu_body". Inside we have multiple list items, each containing a navigation link. Next we need to add an image above the list. This image will serve as the list’s heading an all that is visible when the drop down is collapsed. It doesn’t have to be an image, this would work exactly the same with text to launch and collapse the menu, I just wanted something visual. If you want to use mine, you can find it here. With the image added we have our complete HTML:
<img src="images/navigate.png" width="184" height="32" class="menu_head" />  <ul class="menu_body"> <li><a href="#">About Us</a></li> <li><a href="#">Portfolio</a></li>  <li><a href="#">Clients</a></li> <li><a href="#">Blog</a></li> <li><a href="#">Support Forums</a></li>  <li><a href="#">Gallery</a></li> <li><a href="#">Contact Us</a></li> </ul>
We need to give our image a class name, so we have something to reference by when we start our jQuery. I used the class "menu_head". Here is what we have so far, a completely unstyled list with an image on top:
Unstyled List

Step 2: The CSS

Next we need to give our list some style. First, lets do our top level styling:
body{background:#534741;font-family:Arial, Helvetica, sans-serif; font-size:12px;} ul, li{margin:0; padding:0; list-style:none;}
Nothing too comples here, just setting a background color, font, and font size. Also, we are telling the list to have no padding, margin, or bullets. Now our list is just a heading and a neat column of links:
Some Style
Now we can style the heading image and each list item. Here is the CSS:
.menu_head{border:1px solid #998675;} .menu_body {width:184px;border-right:1px solid #998675;border-bottom:1px solid #998675;border-left:1px solid #998675;} .menu_body li{background:#493e3b;} .menu_body li a{color:#FFFFFF; text-decoration:none; padding:10px; display:block;}
Here’s what we just did. We added a light tan border around the image "menu_head". On the unordered list "menu_body" we set a width (the same width as our image), and we added a light tan border to every side but the top (there will already be a line there since we have one around our image). We set a background color for each list item and we styled each link. Every link is now white, not underlines, has a nice amount of padding, and is set to a block display (this will make the whole box around the link clickable, not just the text itself).
Here is what our list should look now:
More Style

Step 3: The jQuery

Our first step will be to add the jQuery to tell the list items to alternate their background colors. In the head of your HTML document, add:
<script type="text/javascript"> $(document).ready(function () {$("ul.menu_body li:even").addClass("alt"); });  </script>
This is a basic jQuery function. When the document is ready, the function will add a special class of "alt" to each alternating row of our list. With the new classes applied, we can add a new CSS rule for the class "alt"
.menu_body li.alt{background:#362f2d;}
Now the rows will alternate between lighter and darker shades of brown, like this:
Row colors
Now the the list has the overall look that we want, we can go ahead and completely hide it with CSS. In the CSS rule for "menu_body" add the property "display:none;" like this:
.menu_body {display:none; width:184px;border-right:1px solid #998675;border-bottom:1px solid #998675;border-left:1px solid #998675;}
If you look at the page now, all you should be able to see if the heading image. For now, the menu has seemingly dissappeared. Time to bring it back with jQuery:
<script type="text/javascript"> $(document).ready(function () { $("ul.menu_body li:even").addClass("alt");  $('img.menu_head').click(function () {  $('ul.menu_body').slideToggle('medium');  }); }); </script>
We added a new function that runs when the image with the class of "menu_head" is clicked. A click is just one of the events jQuery recognizes. You could also have the function run on mouseover, a key press, or numerous other things. When a click event is registered, jQuery will use the effect slideToggle on the unordered list with the class of "menu_body". jQuery has a large list of effects and various effect plugins, there is really no limit on how you can animate the list sliding open and closed. slideToggle allows you to set a speed, I chose medium, but you can also use "fast", "slow", or define a number in miliseconds.
The menu should now slide open and closed when you click on the heading image:
Animation
You could stop now and have a pretty decent animated menu, but with jQuery its very easy to add simple hover effects. First, we need to add some to our CSS:
.menu_body li a:hover{padding:15px 10px; font-weight:bold;}
This will do two things. When one of our links is hovered over, the padding on the top and bottom will be expanded to 15px (making each rolled over area taller and allowing the shift) and chaning the font weight to bold.
Next we can add some jQuery animation:
<script type="text/javascript"> $(document).ready(function () { $("ul.menu_body li:even").addClass("alt");  $('img.menu_head').click(function () { $('ul.menu_body').slideToggle('medium'); });  $('ul.menu_body li a').mouseover(function () { $(this).animate({ fontSize: "14px", paddingLeft: "20px" }, 50 ); });   }); </script>
We’ve now added a mouseover function, one that runs anytime you mouseover any list item’s link within our unordered list. The function is set to run on "this" which just means the element will run the function on itself. We are using the jQuery effect animate, which allows for many different parameters, along with a duration of time to run them in. We’ve told the function to change the font size to 14px, change the padding-left to 20px, and to do both things in 50 miliseconds.
At this point, the menu can expand and collapse, and the mouseover effect on the links should be working. Now we just need to tell it to reverse the effect when we mouseoff a link. If we don’t tell it to reset each animation, the links will "stick" in their new font size and position. We, of course, want each link to snap back to its original position. We can easily do this like so:
<script type="text/javascript">  $(document).ready(function () { $("ul.menu_body li:even").addClass("alt"); $('img.menu_head').click(function () { $('ul.menu_body').slideToggle('medium'); });  $('ul.menu_body li a').mouseover(function () { $(this).animate({ fontSize: "14px", paddingLeft: "20px" }, 50 );  });  $('ul.menu_body li a').mouseout.(function () { $(this).animate({ fontSize: "12px", paddingLeft: "10px" }, 50 ); }); }); </script>
This is our last bit of jQuery. It is a function that runs whenever you mouseout of a list item’s link. It will reset the font to the original size (12px), change the padding-left back (to 10px). It will do both things in 50 miliseconds, the same speed as the first half of the animation.
Your menu should now be fully functional. It should be able to click open and close (in a sliding animation) and each link should animate when touched with the mouse (expanding the height, text size, and left-margin). I purposely tried to keep this menu light on images, but this simple effect is really easy to dress up some. For example, each link’s hover state could have an image background. Each image could be specific to each section for a really polished, intuituve menu and it would all fit into a small rectangle when not in use.
You can see the finished menu here.

Fw: 38 jQuery And CSS Drop Down Multi Level Menu Solutions

http://www.1stwebdesigner.com/css/38-jquery-and-css-drop-down-multi-level-menu-solutions/

38 jQuery And CSS Drop Down Multi Level Menu Solutions


 Posted in: Coding • Written by:  Dainis Graveris


Hello again, it’s time for comprehensive programming article. Here you’ll find 38 mainly jquery and CSS based drop-down or just multi level menu tutorials with down loadable files and explanations as well. My favorite here is the first pick – Outside the box with very unique navigation menu. It’s always good to have such reference articles in your bookmarks and when you have to create some really big website with a lot of content and menu sections – just return here. Shorten your developing process with already premade menus, which can be easily modified with little touch of CSS.
38 jQuery And CSS Drop Down Multi Level Menu SolutionsBut well, also be aware when each code has been created, has it got some updates through time? In our development niche standards, technologies change so quick sometimes when you decide to use specific menu..it’s very hard to implement it and at the end you’ll even may need to rewrite code just because of incompatibility so be cautious!
Here you’ll find mainly free solutions, but I would also suggest for some special occasions, quick projects to consider some of design/code marketplaces, where you can buy optimized,documented and update codes for really cheap prize. I can assure quality is high,otherwise marketplaces won’t get so popular..and my experiences are only positive and I really am ready to spend 5-10 for important code snippet saving probably hours of my time. I myself have tried CodeCanyon and Mojo-Themes marketplaces, I am sure there are many more out there, but these two are definitely the ones I recommend.
At least I am doing my designing process like this -
  • 1st I do simple browsing to find if there is appropriate codes, snippets,tools available for free (like this article for example).
  • 2nd If after like 5 min browsing I cannot find anything what suits to me, here is time for those marketplaces..where usually I always find something good and I can move forward.
What’s your experiences?
And why you are figuring answers – enjoy this quality article!

1. “Outside the Box” Navigation with jQuery

This tutorial will cover a few ways to do just that with OS X style docks and stacks navigation.
outside-box-drop-down-multi-level-menu-navigation

2. Sexy Drop Down Menu w/ jQuery & CSS

In this tutorial you will learn how to create a sexy drop down menu that can also degrade gracefully.

sexy-jquery-drop-down-multi-level-menu-navigation

3. Designing the Digg Header: How To & Download

Navigation is compacted with the use of simple drop-down menus.

digg-header-drop-down-multi-level-menu-navigation

4. Create The Fanciest Dropdown Menu You Ever Saw

fanciest-drop-down-multi-level-menu-navigation

5. A circular menu with sub menus

A follow on from the simple single level circular menu, this one adds a sub menu level of smaller icons in a circular pattern within the top level circle. There is also the facility to add a simple description of each icon.
circular-drop-down-multi-level-menu-navigation

6.CSS3 Mega Drop Down Menu

This Mega Drop Down Menu is perfect for creating unique menus easily. It’s CSS / XHTML only, there is absolutely NO javascript.The content can be organized in 1, 2, 3, 4 or 5 columns based on the 960 grid system. This item comes with 9 color variants and a detailed documentation to help you start with your brand new menu.
CSS classes allow you to create lists, paragraphs with (or without) images, make your menu stick to the left or the right side, and create your own color schemes quickly.
Go to original site to view video preview.

7. Perfect signin dropdown box likes Twitter with jQuery

Nice tutorial showing you how to create a login drop down with Twitter style using jQuery.
twitter-drop-down-multi-level-menu-navigation

8. Sliding Jquery Menu Tutorial

This tutorial will show you how to create a sliding menu button using jquery. You can see the effect in action over on the PSDtuts webpage in the top right hand corner.

sliding-jquery-drop-down-multi-level-menu-navigation

9.Fancy Sliding Menu for Mootools

fancy-sliding-drop-down-multi-level-menu-navigation

10. Create Vimeo-like top navigation

I’ve featured this Janko’s tutorial some time ago, but sometimes I will repeat myself, since this article is completely dedicated to showcase advanced drop down menus. Very detailed and well written tutorial, with drop-down search options narrowing and targeting search by checking options. Menu is done completely using just CSS, structure is visually describet in the image below:
vimeo-drop-down-multi-level-menu-navigation

11. Dynamic PHP/CSS menu

php-css-drop-down-multi-level-menu-navigation

12. Creating an Outlook Navigation Bar using the ListView and Accordion Controls

outlook-drop-down-multi-level-menu-navigation

13. Animated Drop Down Menu with jQuery

animated-drop-down-multi-level-menu-navigation

14. Drop Menu

With this script you can make nice and interactive drop down menus. The advantage of this script is that it not only gives you the ability to make list drop down menu. You can also use a div as drop down element. This way you can create big drop down menus like under the buttons products and tutorials in the preview or you can create a login panel in your drop down!

15. Make a Mega Drop-Down Menu with jQuery

mega-drop-down-multi-level-menu-navigation

16. A cross-browser drop-down cascading validating menu

Just simple CSS menu.
cross-browser-drop-down-multi-level-menu-navigation

17. Drop-Down Menus, Horizontal Style

Very old drop-down tutorial from year 2004, but if you are starting out – very useful tutorial and example.
horizontal-style-drop-down-multi-level-menu-navigation

18. Superfish v1.4.8 – jQuery menu plugin by Joel Birch

Superfish is an enhanced Suckerfish-style menu jQuery plugin that takes an existing pure CSS drop-down menu (so it degrades gracefully without JavaScript) and more features.
superfish-jquery-drop-down-multi-level-menu-navigation

19. JavaScript Dropdown Menu with Multi Levels

This multi-level drop down menu script weighs in at only 1.2 KB. It features animation, active header persistence, easy implementation and multiple instance support.
javascript-drop-down-multi-level-menu-navigation-1

20. jQuery (mb)Menu 2.7

This is a powerful jQuery component to build easily a multilevel tree menu or a contextual menu (right click) in an intuitive way!
jquery-drop-down-multi-level-menu-navigation

21. Menumatic

MenuMatic is a MooTools 1.2 class that takes a sematic ordered or unordered list of links and turns it into a dynamic drop down menu system. For users without javascript, it falls back on a CSS menu
menumatic-drop-down-multi-level-menu-navigation

22. Smooth Navigational Menu (v1.31)

Smooth Navigation Menu is a multi level, CSS list based menu powered using jQuery that makes website navigation a smooth affair.
smooth-drop-down-multi-level-menu-navigation

23. Super menu pack (10 menus)

Super menu pack is a collection of 10 cool menus, 5 in pure css and 5 using jQuery framework for customize or layout with your websites or applications and projects.
It’s perfect for anyone who wants to give a special touch to their designs or find a starting point. I tried to create a collection as varied as possible in style and appearance to give you choice. Thinking in design working with code.
All menus are easy to customize from CSS . In each file you will find detailed coments.

24. Longed-For Multi-Level Drop-Down Menu Script

longed-jquery-drop-down-multi-level-menu-navigation

25. jQuery & CSS Example – Dropdown Menu

This article is intended to describe an extremely basic, yet extremely powerful, technique for adding dropdown menus in your application user interface or website design.
designreviver-jquery-drop-down-multi-level-menu-navigation

26. Reinventing a Drop Down with CSS and jQuery

reinventing-drop-down-multi-level-menu-navigation

27. Simple jQuery Dropdowns

Very stripped down code and minimal styling, yet still dropdown menu has all the functionality typically needed.
simple-jquery-drop-down-multi-level-menu-navigation

28. Styling Drop Down Boxes with jQuery

One problem with HTML forms is it is hard to style the elements to fit into your design. The tutorial will show you how to style the hardest of them all, the select box.
styling-jquery-drop-down-multi-level-menu-navigation
ipod-drop-down-multi-level-menu-navigation

30. jQuery Menu: Dropdown, iPod Drilldown, and Flyout styles with ARIA Support and ThemeRoller Ready

Newer version of previous iPod style menu.
recreated-drop-down-multi-level-menu-navigation

31. mcDropdown jQuery Plug-in v1.2.07

mc-plugin-drop-down-multi-level-menu-navigation

32. CSS Ultimate Menus

These Menus feature 3 different dropdown styles, Product view, multi-column view and single column view, it has different classes for different levels and could support endless dropdowns. This files does support multiple browsers, and includes a PSD for user customization.

32. jQuery Drop Line Tabs

This menu turns a nested UL list into a horizontal drop line tabs menu. The top level tabs are rounded on each side thanks to the use of two transparent background images, while the sub ULs each appear as a single row of links that drop down when the mouse rolls over its parent LI.
jquery-tabs-drop-down-multi-level-menu-navigation

33. Cut & Paste jQuery Mega Menu

Mega Menus refer to drop down menus that contain multiple columns of links. This jQuery script lets you add a mega menu to any anchor link on your page, with each menu revealed using a sleek expanding animation. Customize the animation duration plus delay before menu disappears when the mouse rolls out of the anchor. Mega cool!
cut-paste-drop-down-multi-level-menu-navigation-1

34. Professional dropdown #2

professional-drop-down-multi-level-menu-navigation

35. Drop down menu with nested submenus

Create your own drop down menu with nested submenus using CSS and a little JavaScript.
nested-drop-down-multi-level-menu-navigation-1

36. jdMenu Hierarchical Menu Plugin

The jdMenu plugin for jQuery provides a clean, simple and elegant solution for creating hierarchical drop down menus for websites to web applications.
jdmenu-drop-down-multi-level-menu-navigation

37. Dynamic Drive – Multiple Level Menus

A lot of free advanced CSS and Javascript drop down menus are available here. There are also instructions and advices how do use and modify them.
dynamic-drive-drop-down-multi-level-menu-navigation-1

38. IzzyMenu – Menu Builder – Build your pro CSS/DHTML Menu

Choose from dozens ready styles or create your own menu style. They are low in file size, so won’t consume a lot of bandwidth from your hosting. IzzyMenu, online menu generator is the best solution for amateurs and professionals!
izzymenu-drop-down-multi-level-menu-navigation-1

39. A Different Top Navigation

In this tutorial you will use jQuery to create a different multi-layered horizontal navigation system that is still intuitive enough for anyone to use for the first time.
different-jquery-drop-down-multi-level-menu-navigation

40. jQuery UI Potato Menu

potato-ui-drop-down-multi-level-menu-navigation

41. jQuery File Tree

jQuery File Tree is a configurable, AJAX file browser plugin for jQuery. You can create a customized, fully-interactive file tree with as little as one line of JavaScript code.
jquery-tree-drop-down-multi-level-menu-navigation