Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- JQuery Menu help using setTimeout


rwilson - 8:23 pm on Aug 10, 2012 (gmt 0)


Thanks! so I tried to take that concept and apply to the hoverIntent Jquery plugin because, setTimeout doesn't seem to be what I'm looking for. I think I'm close but it isn't working yet.

[jsfiddle.net...]

$(document).ready(function () {

$(".mainNav-expand").hoverIntent(showNav,hideNav);
var that = this;

$("#mainNav-bar").mouseout(function() {
$('.mainNavContent').hide();
});

$(".mainNav-close").click(function() {
$('.mainNavContent').hide();
});

});

function showNav() {
$(that).children('.mainNavContent').show();
alert("menutest");
}
function hideNav() {
$(that).children('.mainNavContent').hide();
alert("menutest");
}


Thread source:: http://www.webmasterworld.com/javascript/4483540.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com