<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<script type="text/javascript">
function roll(i,imagesrc)
{
document.images[i].src=imagesrc;
}
</script>
</head>
<body><center>
<table width="100" border="0" cellspacing="4" cellpadding="8">
<tr>
<td height="85"><img name="mypic1" align="middle" alt="flower" border="2" src="../1.JPG" onMouseOver="roll(0,5.jpg)" onMouseOut="roll(0,1.jpg)"></td>
</tr>
<tr>
<td height="101"><img name="mypic2" align="middle" alt="flower" border="2" src="../2.JPG" onMouseOver="roll(1,6.jpg)" onMouseOut="roll(1,2.jpg)"></td>
</tr>
<tr>
<td height="102"><img name="mypic3" align="middle" alt="flower" border="2" src="../3.JPG" onMouseOver="roll(2,7.jpg)" onMouseOut="roll(2,3.jpg)"></td>
</tr>
<tr>
<td height="100"><img name="mypic4" align="middle" alt="flower" border="2" src="../4.JPG" onMouseOver="roll(3,8.jpg)" onMouseOut="roll(3,4.jpg)"></td>
</tr>
</table></center>
</body>
</html>
测试出来的错误是说onmouseover和onmouseout的img标签属性不支持!为什么?!
img应该会响应onmouseout事件啊!大家进来看看吧!