HTML CSS Reference/HTML Attributes Reference/usemap
Версия от 09:21, 26 мая 2010; (обсуждение)
"usemap" Example
<HTML>
<head><Title>Example For usemap</Title></head>
<BODY>
<map name="myMap">
<area shape="rect" coords="0, 0, 100, 50" href=http://www.wbex.ru>
<area shape="rect" coords="100, 0, 200, 50" href="http://www.wbex.ru">
<area shape="rect" coords="200, 0, 300, 50" href="http://www.wbex.ru">
</map>
<img src="http://www.wbex.ru/style/logo.png"
alt="http://www.wbex.ru"
width=300
height=100
usemap="#myMap">
</BODY>
</HTML>
usemap is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |<img> <input> |
| |<object> |
+----------------+--------------------------------------------------------------+
"usemap" Syntax and Note
Note:
This attribute sets the image map for the map element.
The value of this attribute must either be the URL of an image map, or
a "#" followed by the id attribute value of a <map> element on the same page.
Syntax:
<element usemap="value">