问一个热区的问题。 将一张图片上的某个区域设置为热区,发现当点击图片上除热区以外的区域后,再将鼠标移动至热区区域而没有点击热区就会出现热区所定义的超链接网页。我是这样做的,在<map onMouseOver="return false;">和<area onMouseOver="return false;">,但都不行。请问如何解决? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 示例代码如下:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>无标题文档</title></head><body><img src="lenovo.jpg" border="0" usemap="#Map" /><map name="Map" id="Map"><area shape="rect" coords="119,124,295,151" href="http://www.google.cn" /></map></body></html> 我表达能力不行,其实操作很简单。就是把图片的某个区域设为热区,该热区的href属性设置为http://www.google.cn 然后,鼠标随意点击图片的其他区域,再移至热区上方,此时会自动弹出google网页 我希望只有鼠标click热区时才会链接到google 什么理解? 仅仅是把鼠标移动到热区上就打开热区对应的连接吗?看看是不是下面的效果?....<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>oepn link...</title></head><script language="javascript" type="text/javascript">function openLink(url){var u=url;window.location=u;}</script><body> <img src="http://avatar.profile.csdn.net/6/1/2/2_BeenZ.jpg" width="500" height="224" border="0" usemap="#Map"><map name="Map"> <area style="border:1px solid red;" shape="rect" onMouseOver="javascript:openLink(this.href);" coords="211,59,348,186" href="http://www.baidu.com" target="_blank"></map>鼠标移动到问好上看看...</body> </html> 4楼的代码保存后,无法重现错误,可能是其它地方出错看看 js 里面是否定义了 onmouseover 弱弱的说下,这和HotSpot有关系没 属性“DownLoadMaterial”的值为 null、未定义或不是 Function 对象 请教高手此处打开隐藏效果如何实现的? 困扰了一个晚上的问题,实在想不懂!关于用JS提交表单 javascript Jquery jquery新手问题 JavaScript脚本跳转页面不生效,求助高手! 如何得到窗口的高度 哪位兄弟知道怎么禁止鼠标滚轮控制下拉框!!~~~~ 一个广告轮换显示,怎么做??有可能是图片,也可能是flash!!! 那位老大可以告诉小弟怎么用javascript实现图片在网页中滚动? JS 对象数组 网站收藏功能在firefox下为什么不起作用
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head><body>
<img src="lenovo.jpg" border="0" usemap="#Map" />
<map name="Map" id="Map"><area shape="rect" coords="119,124,295,151" href="http://www.google.cn" /></map>
</body>
</html>
什么理解? 仅仅是把鼠标移动到热区上就打开热区对应的连接吗?看看是不是下面的效果?....<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>oepn link...</title>
</head>
<script language="javascript" type="text/javascript">
function openLink(url){
var u=url;
window.location=u;
}
</script>
<body>
<img src="http://avatar.profile.csdn.net/6/1/2/2_BeenZ.jpg" width="500" height="224" border="0" usemap="#Map">
<map name="Map">
<area style="border:1px solid red;" shape="rect" onMouseOver="javascript:openLink(this.href);"
coords="211,59,348,186" href="http://www.baidu.com" target="_blank">
</map>
鼠标移动到问好上看看...
</body>
</html>
看看 js 里面是否定义了 onmouseover