[jQuery] Superfish v1.1 released
Hi jQuistadores,
I have made some changes to my Superfish menu plugin and probably
need to give it a version number. I think the previous version was
stable and this version adds a feature so I'm calling this version
Superfish v1.1. I don't really know versioning but this should do.
Demo page:
http://users.tpg.com.au/j_birch/plugins/superfish/
Changes:
The main reason for the update is to allow users to use the awesome
hoverIntent plugin (by Brian Cherne) to improve the user experience
further by eliminating unintended submenu flyouts while mousing
towards the intended destination. Superfish now automatically uses
hoverIntent if it is available. All you have to do is include the
hoverIntent reference higher up in the source order than the one to
Superfish. If hoverIntent is not available, Superfish will use the
regular hover() function as it always has.
The only other thing worth mentioning about the change is that I had
to have Superfish add a class to the element it is called upon
(usually a ul or its containing div). This class is used as a hook to
disable the pure CSS hover behaviour (which is important for graceful
degradation) from making the submenu appear before hoverIntent
decides it should. If you are currently using Superfish and want to
upgrade to v1.1 for use with hoverIntent, be sure to add this extra
rule to your CSS:
.superfish li:hover ul,
.superfish li li:hover ul {
top:-999em;
}
If you just want to upgrade to stay up to date but don't necessarily
want to use hoverIntent, then merely updating to the Superfish plugin
code should work perfectly and not break anything.
I have been wanting to use HoverIntent with Superfish since day one,
so thanks go to Carleigh Romeis for the interest that kicked me into
gear, and of course to Brian Cherne for his amazingly useful
HoverIntent plugin.
Joel Birch.