JFreeChart实现热点功能后会在页面上产生map信息 <map id="map0" name="map0">
<area shape="poly" coords="552,21,551,23,549,24,547,23,546,21,547,19,549,18,551,19,552,21,552,21" title="(上限, 12) = 200" alt="" href="displayPieAction.do?checkid=83&series=%C9%CF%CF%DE§ion=12"/>
<area shape="poly" coords="546,322,552,322,552,328,546,328,546,322,546,322" title="(下限, 12) = 0" alt="" href="displayPieAction.do?checkid=83&series=%CF%C2%CF%DE§ion=12"/>
<area shape="poly" coords="101,21,100,23,98,24,96,23,95,21,96,19,98,18,100,19,101,21,101,21" title="(上限, 1) = 200" alt="" href="displayPieAction.do?checkid=83&series=%C9%CF%CF%DE§ion=1"/>
<area shape="poly" coords="95,322,101,322,101,328,95,328,95,322,95,322" title="(下限, 1) = 0" alt="" href="displayPieAction.do?checkid=83&series=%CF%C2%CF%DE§ion=1"/>
</map>但是我想在新的窗口中打开打开指定的链接地址,类似target="_blank" 或 alt="",怎样实现此功能
<area shape="poly" coords="552,21,551,23,549,24,547,23,546,21,547,19,549,18,551,19,552,21,552,21" title="(上限, 12) = 200" alt="" href="displayPieAction.do?checkid=83&series=%C9%CF%CF%DE§ion=12"/>
<area shape="poly" coords="546,322,552,322,552,328,546,328,546,322,546,322" title="(下限, 12) = 0" alt="" href="displayPieAction.do?checkid=83&series=%CF%C2%CF%DE§ion=12"/>
<area shape="poly" coords="101,21,100,23,98,24,96,23,95,21,96,19,98,18,100,19,101,21,101,21" title="(上限, 1) = 200" alt="" href="displayPieAction.do?checkid=83&series=%C9%CF%CF%DE§ion=1"/>
<area shape="poly" coords="95,322,101,322,101,328,95,328,95,322,95,322" title="(下限, 1) = 0" alt="" href="displayPieAction.do?checkid=83&series=%CF%C2%CF%DE§ion=1"/>
</map>但是我想在新的窗口中打开打开指定的链接地址,类似target="_blank" 或 alt="",怎样实现此功能
解决方案 »
- 中文乱码问题
- java项目浏览器不显示图片
- 求帮助JSF问题:org.apache.jasper.JasperException: java.lang.NullPointerException
- 关于Struts2验证框架中xml属性文件的问题
- 一个JSP页调用Servlet的问题(一个让我郁闷的问题?请您指点~急!)
- 一个java问题,高手帮个忙!
- 一个用smartupload文件下载的问题?
- 我现在学习JAVA和JSP有一定时间了,有个结构上的问题想问问大家。
- (1)页面数据有效性验证(2)页面用ENTER代替TAB
- java WEB应用,用hibernate查数据库,返回的时间会根据结果集数量递增。这是什么情况
- 这种乱码问题谁能解决啊?
- 网页OCX调用问题, 在线等待
我反编译了JFreeChart包下的类,没有相关的暴露属性,
其实他只要对<area shape="poly" coords="546,322,552,322,552,328,546,328,546,322,546,322" title="(下限, 12) = 0" alt="" href="displayPieAction.do?checkid=83&series=%CF%C2%CF%DE§ion=12"/>
下的 alt赋值就可以,找不到相关的方法
onclick="javascript:window.open('displayPieAction.do?checkid=83&series=%C9%CF%CF%DE§ion=12','_blank');return false;">
在linkGenerator method中 return 一個String為 "#\" onclick=\"aa();"
aa()為javascript中的function再裡頭window.open就ok啦
我對岸來的 嘿嘿