使用图像映射单击鼠标时的警报框
Alert box on mouse click using image mapping
如何在鼠标单击图像坐标时生成信息文本或警告框?
以下是我尝试的映射代码行:
<area shape="rect" coords="523,137,658,160" href="#" onclick='alert("Pt.#xxxxx - $xxx.xx")' title="Pt.#xxxxx">
试试这个代码
http://jsfiddle.net/rainerpl/157wq0zq/
click on planets or the sun ( sample from w3schools )<br>
<img src="http://www.w3schools.com/tags/planets.gif" width="145" height="126" alt="Planets"
usemap="#planetmap">
<map name="planetmap">
<area shape="rect" coords="0,0,82,126" href="javascript: alert('the sun')" alt="Sun" >
<area shape="circle" coords="90,58,3" href="javascript: alert('the mercury')" alt="Mercury">
<area shape="circle" coords="124,58,8" href="javascript: alert('the venus')" alt="Venus">
</map>
相关文章:
- 如何在鼠标悬停时在另一个图像上滑动图像.
- 鼠标悬停时如何居中放大背景图像
- 在鼠标悬停处隐藏图像
- 替换鼠标悬停时的图像源
- 如何在asp:linkButton上显示鼠标悬停事件上的图像
- jQuery淡化图像,但图像除外,鼠标悬停在图像上
- 将鼠标悬停在图像上时显示文本
- 更改鼠标悬停时映射图像热点的背景
- jQuery透明图像描述鼠标悬停时的幻灯片动画
- 将href链接添加到通过js鼠标悬停显示的图像
- 将鼠标悬停在图像效果上
- 将鼠标悬停在图像上时显示图像
- 如何在保持鼠标悬停功能的同时居中跨过图像
- 将鼠标悬停到网页框架时绑定图像预览
- 如何在鼠标移动事件时更改图像的窗口中心和宽度
- 创建随机图像交换并禁止鼠标悬停事件
- 鼠标悬停时随机更改背景图像
- 在Jquery中将鼠标悬停在图像上后获取输入标记的URL
- 在鼠标悬停/取消悬停父元素时,更改子图像的url哈希
- 如何使用onmousemove函数在每次鼠标移动时更改背景图像