$(".land_footer0").stop().animate({opacity:'hide'}, "slow"); $(".land_footer"+li_val).stop().animate({opacity:'show'}, "slow"); },function () { var li_val = $(this).data("val"); $(".land_footer"+li_val).stop().animate({opacity:'hide'}, "slow"); $(".land_footer0").stop().animate({opacity:'show'}, "slow"); })