$('.story_bunner ul li').mouseover(function(){ var _img = $(this).find('img'); var _index = $(this).index()+1;
//遍历还原图片
$('.story_bunner ul li').each(function(index){
$(this).find('img').attr('src', '__PUBLIC__/images/' + (index+1) + '.png');
})
//当前图片显示为指定图片
_img.attr('src','__PUBLIC__/images/'+_index+'-ed.png');
})
鼠标悬停图片切换效果
5413

被折叠的 条评论
为什么被折叠?



