[jQuery] Superfish speed problem
Hi there,
I'm trying to get my Superfish menu to display the instant that I
hover over it. However there is a slight pause before the sub-menu is
displayed. I am using supersubs as well, this is the set-up call I am
using.
$(document).ready(function(){
$('ul.sf-menu').supersubs({
minWidth: 12,
maxWidth: 27,
extraWidth: 1
}).superfish({
onInit: function(){},
onBeforeShow: function(){},
onShow: function(){},
onHide: function(){},
delay : 200,
animation : {height:'show'},
speed : 1
})
});
I would like it to work as quickly as the one on this site:
http://www.salesforce.com/
but when I add a jQuery .hover function on the top menu items, to set
a background css style on the top level "a" elements, the hover style
gets applied a (significant) fraction BEFORE the sub-menu for that
element is expanded.
Anyone got any ideas on how to expand the sub-menus "instantly"? Thanks!
Ben
P.S. many thanks to Joel Birch for this great nav system!
Ben Houghton
m: 07880 520265