我想为几个不同的图像重复使用图像映射。 我希望Javascript能够知道我点击了image3的第2区。 这可能使用Javascript吗? 如果是这样,我如何将图像ID传递给Javascript? 谢谢!
<map name="bg_over" id="bg_over">
<area shape="poly" coords="2,44,44,2,44,44" href="team2.html" alt="" />
<area shape="poly" coords="0,0,0,43,44,0" href="team1.html" alt="" />
</map>
<a href="#"><img src="/Training/rumble_ora/images/bg.gif" width="44" height="44" id="image1" name="image1" usemap="#bg_over"></a>
<a href="#"><img src="/Training/rumble_ora/images/bg.gif" width="44" height="44" id="image2" name="image2" usemap="#bg_over"></a>
<a href="#"><img src="/Training/rumble_ora/images/bg.gif" width="44" height="44" id="image3" name="image3" usemap="#bg_over"></a>