i have a problem with this code and i cant't find the problem. It works with JQuery 1.5.2 and lower, but not with JQuery 1.6 and higher.
Here is the code and thanks for your help!
$(document).ready(function () {
$(".selected").stop().animate({'backgroundPosition':'(0 -28)'}, {duration:200});
$('#ver li a').hover(
function ()
{
if (!($(this).hasClass("selected")))
{
height = $(this).height() * (1);
$(this).stop().animate({'backgroundPosition':'(0 ' + -height + ')'}, {duration:200});
}
},
function ()
{
if (!($(this).hasClass("selected")))
{
$(this).stop().animate({'backgroundPosition':'(0 0)'}, {duration:200});
}
}
);
});