$(function() { //TAP $('ul.yun-solution-list li').mousemove(function() { var index = $(this).index(); $('ul.yun-solution-wrap li').removeClass('current').eq(index).addClass('current'); $('#yun-arrow-wrap').attr('class', 'yun-arrow-wrap yun-arrow-current' + (index + 1)); }) //背景变换 $('ul.yun-solution-list li').hover(function() { var that = $(this); var i = 0; bgChange = setInterval(function() { i += -84 that.find('div').css('backgroundPositionY', i) if (i <= -2058) { clearInterval(bgChange); } }, 50) }, function() { clearInterval(bgChange); }) })