得给所有图片都添加上变大的事件,他这里只是给你示例
不过这种方法放大会影响到布局的,没啥用
我改了一下可以了 。它方法用错了
<html>
<head>
</head>
<body>
<b>请把鼠标移动到图像上:</b><br />
<img id="image" src="https://ss1.baidu.com/-4o3dSag_xI4khGko9WTAnF6hhy/baike/s%3d600%3bq%3d50/sign=c78810f334d12f2eca05ad607ff9a45f/8326cffc1e178a8205650e84f403738da977e8bd.jpg" tppabs="http://www.w3school.com.cn/i/eg_bulbon.gif"
width="100" height="180" onmouseover="moveover()" onmouseout="moveback()"/>
</body>
<script type="text/javascript">
function moveover() {
document.getElementById('image').width = "200"
document.getElementById('image').height = "360"
}
function moveback() {
document.getElementById('image').width = "100"
document.getElementById('image').height = "180"
}
</script>
</html>