[英]How do I get a usemap working within a firefox XUL document
In my XUL I have the following code fragments: 在我的XUL中,我有以下代码片段:
<map name="KeypadMap">
<area href="javascript:pad('A')" coords="1,1,31,31" shape="rect"/>
</map>
...
<hbox flex="1">
<image src="./keypad.png" width="32" height="32" useMap="#KeypadMap"/>
</hbox>
The image displays just fine, however, when I mouse over, the cursor does not change to a hand, and clicking does not call the pad function. 图像显示就好了,但是,当我鼠标,光标不会更改为手,并单击不调用垫功能。
Similar code works fine in straight HTML, so there must be some trick to get it working via a Firefox XUL file. 类似的代码在纯HTML中也可以正常工作,因此必须有一些技巧才能通过Firefox XUL文件使其正常工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.