我有一个带有“访问”按钮的图像,它是用 HTML 代码映射的图像,它具有翻转效果,因此当您将鼠标放在“访问”链接上时,它会显示访问按钮的发光版本。
但是现在代码不正确,翻转效果将原始图像替换为发光版本图像,我只是希望发光版本在以下 html 代码中的相同坐标处覆盖原始版本:coords="52,63,145,100"
我不希望它替换整个图像。我希望发光版本保持其正常大小。这是到目前为止的代码:
<div style="text-align:center; width:200px; margin-left:auto; margin-right:auto;">
<img id="Image-Maps_3201304212133558" src="http://www.image-maps.com/uploaded_files/3201304212133558_example78.png" usemap="#Image-Maps_3201304212133558" border="0" width="200" height="200" alt="" />
<map id="_Image-Maps_3201304212133558" name="Image-Maps_3201304212133558">
<area shape="rect" coords="52,63,145,100" href="yahoo.com" alt="visit!" title="visit!" onMouseOver="if(document.images) document.getElementById('Image-Maps_3201304212133558').src= 'http://s15.postimg.org/a71gazzzr/visit_glow.pngmage-maps.com/';" onMouseOut="if(document.images) document.getElementById('Image-Maps_3201304212133558').src= 'http://www.image-maps.com/uploaded_files/3201304212133558_example78.png';" />
<area shape="rect" coords="198,198,200,200" href="http://www.image-maps.com/index.php?aff=mapped_users_3201304212133558" alt="Image Map" title="Image Map" />
</map>
</div>