<script language="javascript" type="text/javascript" >
$(
function () {
$('li').mouseover(function () {
var $this = $(this);
$('#previewImage').animate({ opacity: 0.1 }, 0, function () {
$(this).attr("src", 'img/' + $this.attr('id') + '.jpg').animate({ opacity: 1 }, 1000);
});
// mouseout should come here and hover image should come back to normal while mouseout
});
});
</script>
请帮助我,它应该会出现在这里,并且当鼠标悬停事件发生时,悬停图像应该恢复正常!