javascript - How do you make a .hover delay in jquery -
i have slider thumbnails under slides. want hover on thumbnail image , change slide. there way hover on thumbnail img wait second change slide match thumbnail?
$(function(){ $("#main-photo-slider").codaslider(); $navthumb = $(".nav-thumb"); $crosslink = $(".cross-link"); $navthumb.hover(function() { var $this = $(this); theinterval($this.parent().attr('id').slice(1) - 1); return false; } ); theinterval(); }); this have , works doesn't have 1 second time lapse
try this.
$navthumb.hover(function() { var $this = $(this); settimeout(function(){ $this.parent().attr('id').slice(1) - 1); }, 1000); return false; } );
Comments
Post a Comment