Book Image

jQuery for Designers Beginner's Guide Second Edition

By : Natalie Maclees
Book Image

jQuery for Designers Beginner's Guide Second Edition

By: Natalie Maclees

Overview of this book

Table of Contents (21 chapters)
jQuery for Designers Beginner's Guide Second Edition
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

The hoverIntent plugin


Earlier, I pointed out that one problem with our menu was how quickly the menu reacted to the mouseover event. Any time the mouse is moved over the menu, the nested menus open. While that might seem like a good thing at first, it might be disconcerting or surprising to site visitors if they are simply moving their mouse on the screen and aren't intending to use the drop-down or fly-out menus.

The Superfish plugin has built-in support for the hoverIntent plugin. The hoverIntent plugin sort of pauses the mouseover event and makes the page wait to see if the mouse slows down or stops on an item to make sure it's what the site visitor intended to do. That way if the site visitor just happens to roll their mouse over the drop-down menu on their way to something else on the page, the submenus won't start appearing, throwing them into confusion.

If you'll recall, the hoverIntent plugin was actually included in the ZIP file when we downloaded the Superfish plugin. To take advantage...