<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<script type="text/javascript" src="js/jquery-1.12.4.js" ></script>
</head>
<body>
<a href="https://www.4399.com"><img id="img" src="img/autumn.jpg"/></a>
<script>
$("#img").mousemove(function(){
var a = document.getElementById("img");
a.setAttribute("width","600px")
a.setAttribute("heigth","200px")
})
$("#img").mouseout(function(){
var a = document.getElementById("img");
a.setAttribute("width","400px")
a.setAttribute("heigth","350px")
})
</script>
</body>
</html>
HTMLmouseover/out使用
最新推荐文章于 2023-04-10 18:16:41 发布