我已经为你的气球重新制作了区域,你那里的坐标很乱。只需将 替换n.jpg
为参考图像上该气球编号的文件名。
更新:将多边形更改为圆形,因为它们显示出一些不一致。希望这次能奏效。我们也可以结束这个问题。
替代文字 http://thismayhem.com/img/stackoverflow.png
这些是每个人的代码:
<area shape="circle" coords="231,49,46" href="" onmouseover="changeImage('1.jpg')" onmouseout="resetImage()"/>
<area shape="circle" coords="273,112,31" href="" onmouseover="changeImage('2.jpg')" onmouseout="resetImage()"/>
<area shape="circle" coords="169,150,33" href="" onmouseover="changeImage('3.jpg')" onmouseout="resetImage()"/>
<area shape="circle" coords="97,159,32" href="" onmouseover="changeImage('4.jpg')" onmouseout="resetImage()"/>
<area shape="circle" coords="134,59,38" href="" onmouseover="changeImage('5.jpg')" onmouseout="resetImage()"/>
<area shape="circle" coords="67,87,28" href="" onmouseover="changeImage('6.jpg')" onmouseout="resetImage()"/>