点击图像的某一部分,跳到一个连接或执行一个事件
2014-05-07 14:40
351 查看
<html> <body> <p>请点击图像上的星球,把它们放大。</p> <img src="/i/eg_planets.jpg" border="0" usemap="#planetmap" alt="Planets" /> <map name="planetmap" id="planetmap"> <area shape="circle" coords="180,139,14" href ="/example/html/venus.html" target ="_blank" alt="Venus" /> <area shape="circle" coords="129,161,10" href ="/example/html/mercur.html" target ="_blank" alt="Mercury" /> <area shape="rect" coords="0,0,110,260" href ="/example/html/sun.html" target ="_blank" alt="Sun" /> </map> <p><b>注释:</b>img 元素中的 "usemap" 属性引用 map 元素中的 "id" 或 "name" 属性(根据浏览器),所以我们同时向 map 元素添加了 "id" 和 "name" 属性。</p> </body> </html>
相关文章推荐
- vb.net treeView的同一个节点第二次点击(连续),不执行事件
- 消除点击连接或者按钮或者执行onclick事件时出现的边框
- 一个Text,设置不同的颜色,有颜色部分添加点击事件
- 点击一个按钮后禁用按钮,执行完事件后再启用按钮
- 让一个网页页面的提交按钮执行点击事件
- JavaScript实现父子dom同时绑定两个点击事件,一个用捕获,一个用冒泡时执行顺序的方法
- 点击TreeView的定制图像不执行任何事件并且在js中找到TreeView节点的value值
- JavaScript-父子dom同时绑定两个点击事件,一个用捕获,一个用冒泡时执行顺序
- 让一个按钮自动触发,自动执行onclick鼠标单击事件. 默认已点击.
- 点击TreeView的定制图像不执行任何事件并且在js中找到TreeView节点的value值
- Unity中同一个物体上加载的脚本的执行顺序以及点击Button时触发事件的顺序
- 点击TreeView的定制图像不执行任何事件并且在js中找到TreeView节点的value值
- 点击一个按钮后可以切换按钮的背景图片并执行不同的点击事件
- jquery 点击同一个按钮,第一次与第二次执行不同事件
- 点击一个按钮后禁用按钮,执行完事件后再启用按钮
- Asp.net 2.0自定义控件(点击HyperLink后执行事件)[网友问题: DataList里HyperLink控件激发事件,在哪定义?]
- Asp.net 2.0自定义控件(点击HyperLink后执行事件)
- checkbox扩大点击范围以及一个监听器处理多个点击事件
- android 同时点击多个button 避免同时响应,只响应一个点击事件 (是否允许多点触控)
- Android Studio中设置一个按钮的不同点击触发事件