Seems that I can’t store the linguettaCorrente variable into the hover handler :
$('.navigatore_blocco').hover(
var linguettaCorrente=$(this).find('linguetta');
function() {
linguettaCorrente.animate( { height: 33 }, 600);
},
function() {
linguettaCorrente.animate( { height: 23 }, 600);
}
);
why? And how can I store it?
Declare the same var outside the hover and define it inside.
.hoverfunction takes 2 argument and those 2 are functions. It cannot be anything else.