想在图片的(0,0 2,2)在这个鼠标区域触发鼠标事件,怎么做呢,无限感激! 楼上的大哥,能说详细点么,我这个是想用JSP做,不是其它。你说的鼠标事件我知道怎么做。关键是那个坐标的问题。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <map name="Map"> <area shape="rect" coords="156,16,332,68" href="javascript:" onclick="window.open('abc.jsp', '', 'height=710, width=1014,left=0,top=0,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no');" ></map>用这个!!在你要的区域画出来一个透明的域就可以实现你的功能了! <html><head><script type="text/javascript">function writeText(txt){document.getElementById("desc").innerHTML=txt}</script></head><body><img src ="/i/eg_planets.gif" usemap="#planetmap" /><map id ="planetmap" name="planetmap"><area shape ="rect" coords ="0,0,82,126"onMouseOver="writeText('太阳和类似木星这样的气态行星是到目前为止太阳系中最大的物体。')"href ="/example/html/sun.html" target ="_blank" alt="Sun" /><area shape ="circle" coords ="90,58,3"onMouseOver="writeText('从地球上是很难研究水星的,这样由于它和太阳的距离总是很近。')"href ="/example/html/mercur.html" target ="_blank" alt="Mercury" /><area shape ="circle" coords ="124,58,8"onMouseOver="writeText('直到 20 世纪 60 年代,金星一直被认为是地球的孪生姐妹,因为金星是离我们最近的行星,同时还由于两者拥有很多共同的特征。')"href ="/example/html/venus.html" target ="_blank" alt="Venus" /></map> <p id="desc"></p></body></html> 用Frontpage就能做出这样的效果。 Apache 集群环境 ,DWR的js不能加载。。。 急,积分相关问题 从servlet端传过来来json串~ 一个showModal页的问题 hibernate多表查询问题 客户要技术方案????? 求助关于struts2的下载问题!! ASP+SOCKET!!!!!!!!!!! jsp中的怎么实现打印table表格中的内容啊 刚入门的一个问题 如何实现当DB的一个表,有记录追加时,在客户端出现一个提示框,提示有记录被追加。 wap的wml页面能不能使用struts标签
<area shape="rect" coords="156,16,332,68" href="javascript:" onclick="window.open('abc.jsp', '', 'height=710, width=1014,left=0,top=0,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no');" >
</map>用这个!!在你要的区域画出来一个透明的域就可以实现你的功能了!
<head>
<script type="text/javascript">
function writeText(txt)
{
document.getElementById("desc").innerHTML=txt
}
</script>
</head><body>
<img src ="/i/eg_planets.gif" usemap="#planetmap" /><map id ="planetmap" name="planetmap">
<area shape ="rect" coords ="0,0,82,126"
onMouseOver="writeText('太阳和类似木星这样的气态行星是到目前为止太阳系中最大的物体。')"
href ="/example/html/sun.html" target ="_blank" alt="Sun" /><area shape ="circle" coords ="90,58,3"
onMouseOver="writeText('从地球上是很难研究水星的,这样由于它和太阳的距离总是很近。')"
href ="/example/html/mercur.html" target ="_blank" alt="Mercury" /><area shape ="circle" coords ="124,58,8"
onMouseOver="writeText('直到 20 世纪 60 年代,金星一直被认为是地球的孪生姐妹,因为金星是离我们最近的行星,同时还由于两者拥有很多共同的特征。')"
href ="/example/html/venus.html" target ="_blank" alt="Venus" />
</map> <p id="desc"></p></body>
</html>