<html>
<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" οnmοuseοver="bigger(this)" οnmοuseοut="smaller(this)" src="img/1.jpg"
style="cursor:pointer;width:100px;height:100px;"/>
<img name="image2" οnmοuseοver="smaller(this)" οnmοuseοut="smaller(this)" src="img/2.jpg"
style="cursor:pointer;width:100px;height:100px;"/>
</div>
</body>
<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" οnmοuseοver="bigger(this)" οnmοuseοut="smaller(this)" src="img/1.jpg"
style="cursor:pointer;width:100px;height:100px;"/>
<img name="image2" οnmοuseοver="smaller(this)" οnmοuseοut="smaller(this)" src="img/2.jpg"
style="cursor:pointer;width:100px;height:100px;"/>
</div>
</body>
</html>
注:针对多张图片,需要用this结合functionXXX(obj),定位到当前作用对象