function ChangImg(Name,ImgUrl)
{
document.Name.src=ImgUrl;
}
这个Name是变量,不能这样用,要怎么用,因为我是多张图片
<img src="Images/top1.gif" width="80" height="85" name="q1" onmouseover="ChangImg('q1','Images/top11.gif')" onmouseout="ChangImg('q1','Images/top1.gif')" border=0/>
<img src="Images/top2.gif" width="76" height="85" name="q" onmouseover="ChangImg('q2','Images/top2.gif')" onmouseout="ChangImg('q2','Images/top22.gif')"/>