<head>
<script type="text/javascript">
function bigger(obj){
obj.width='200px';
obj.height='200px';
}
function smaller(){
obj.width='90px';
obj.height='100px';
}
</script>
</head>
<body>
<div id='zuo3'>
<img name="image1" onmouseover="bigger(this)" onmouseout="smaller(this)" src="img/1.jpg"
style="cursor:pointer;width:100px;height:100px;"/>
<img name="image2" onmouseover="smaller(this)" onmouseout="smaller(this)" src="img/2.jpg"
style="cursor:pointer;width:100px;height:100px;"/>
</div>
</body>
</html>
注:針對多張圖片,需要用this結合functionXXX(obj),定位到當前作用對象