js鼠标移上去更换图片源码下载

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>http://www.taobye.com</title>
</head>
<body>
<img id="imgs" onmouseout="show2()" onmouseover="show1()" width="500px" height="500px" src="http://www.taobye.com/attachFiles/image/20160329/20160329144032_620.jpg" />
</body>
<script type="text/javascript">
/*鼠标移上去事件*/
function show1(){
	document.getElementById("imgs").src="http://www.taobye.com/attachFiles/image/20160329/20160329135724_96.png";
}
/*鼠标移走事件*/
function show2(){
	document.getElementById("imgs").src="http://www.taobye.com/attachFiles/image/20160329/20160329144032_620.jpg";
}
</script>
</html>
正在加载评论...