我有以下代码:
$(document).ready(function(){
$('.active-bean-bag ul li.bean-bag-image').mouseover(function() {
var activeBeanBag = 'menu-' + $(this).attr("id");
$('.active-bean-bag img.menu-image').stop(true, true).fadeOut();
$('.active-bean-bag img.menu-image').fadeOut(function(){
$('.active-bean-bag img.menu-image').attr("src", '/skins/template/customer/images/'+activeBeanBag+'.png');
$('.active-bean-bag img.menu-image').fadeIn();
});
});
});
但是,当您快速移动 li 选项以到达您想要的选项时,它不会赶上并显示不正确的图像
提前致谢