这是我的jsfiddle - http://jsfiddle.net/ganganp/x62wR/5/
$('#rotator0 div').hover(
function () {
ssrc = $(this).find('img').attr("src");
valt = $(this).find('img').attr("alt");
(this).children('img').attr('src','http://placehold.it/150x150&text='+valt);
},
function () {
$(this).children('img').attr('src',ssrc);
}
);
Run Code Online (Sandbox Code Playgroud)
将鼠标悬停在内圈图像不起作用.我哪里出错了?