| An image map.
There are two ways to use Imagemap:
- Listen to the onClick event, which is an instance of
org.zkoss.zk.ui.event.MouseEvent . Then, you could call
getX() and getY() to retrieve where user has clicked.
- Assign one or multiple of
Area as its children.
Then, listen to the onClick event, and use
org.zkoss.zk.ui.event.MouseEvent.getArea to retrieve
which area is clicked.
Note: IE 5.5/6 (not 7) has a bug that failed to render PNG with
alpha transparency. See http://homepage.ntlworld.com/bobosola/index.htm for details.
Thus, if you want to display such image, you have to use the alphafix mold.
<imagemap mold="alphafix"/>
author: tomyeh |