设置www.website.com/sds/ (index.htm),使鼠标悬停在不同位置时显示图像。
由于某些原因,当您将鼠标放在蓝色气球上时,图像2.jpg和3.jpg (在蓝色气球上来回移动鼠标)都会显示(而不是同时)。只有3.jpg (儿童在椅子上)应该显示在蓝色气球上。
2.jpg (在粉色气球上找到)在粉色气球上工作良好。
我将图像2和3的新坐标从"poly“更改为"rect”,认为这可能有帮助,但它没有帮助。2.jpg在粉色气球上显示得很好。
感谢你的帮助,PC
发布于 2009-12-23 11:13:02
我重新做了你的气球的区域,你有一个相当混乱的坐标。只需将n.jpg替换为参考图像上气球编号的文件名。
更新:将多边形改为圆形,因为它们显示出一些不一致。希望这次能行得通。我们也可以结束这个问题。
alt text 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()"/>https://stackoverflow.com/questions/1950450
复制相似问题