Jquery delay on function
问题 Hi I written a two jquery functions for a simple fading menu, it basically splits the screen in half and allows you go to one of two sites. How can I set a delay of say 2 seconds before these function work? Here's my code: $('#retailNav').bind({ mouseenter: function() { $('#retailFull:not(:animated)').fadeIn('slow'); $('#residentialNav:not(:animated)').fadeOut('slow'); }, mouseleave: function() { $('#retailFull').fadeOut('slow'); $('#residentialNav').fadeIn('slow'); } }); $('#residentialNav')