

<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>test</title>
<style>
</style>
<script type="text/javascript">
function changeImg() {
var imageEle = document.getElementById("img");
imageEle.src = "2.jpg";
}
function changeImgAgain() {
var imageEle = document.getElementById("img");
imageEle.src = "1.jpg";
}
</script>
</head>
<body>
<div id="handler" onmouseover="changeImg()" onmouseout="changeImgAgain()" style="backgound: #333; width: 300px; height: 300px"></div>
<div><image id="img" src="1.jpg" /></div>
</body>将mouseout换成mouseleave事件。
思路是没有问题的,贴出你的代码吧,是你的代码有问题
$('#divId').hover(
function() {//mouseover
$(this).find("image").attr("src","......");
},
fucntion(){//mouseout
$(this).find("image").attr("src",".....");
}
);