I have this function to move an absolute DIV, and I want to execute the setTimeout function. However, jQuery jumps out of the hover () function when it comes to the $ () line. Finish (). How to do something after the finish ()?
$('#header li[class!="logo"]').hover(function () { var leftStart = $(this).position().left; var width = ($(this).width() / 2) - 22; $('#header .pointerarrow').animate({ left: leftStart + width }, 400); }, function () { $('#header .pointerarrow').finish();
javascript jquery html
Jelle
source share