HTML/CSS/Images/coords

Материал из Web эксперт
Перейти к: навигация, поиск

"coords" sets the coordinates of an "a" or "area" element

   <source lang="html4strict">
   

<HTML> <BODY> <img src="http://www.wbex.ru/style/logo.png"

    alt="http://www.wbex.ru" 
    width=300 
    height=100 usemap="#myMap">
    <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.google.ru">
    <area shape="rect" 
          coords="200, 0, 300, 50" 
          href="http://www.wbex.ru">
    <area shape="rect" 
          coords="0, 50, 100, 100" 
          href="http://www.msn.ru">
    </map>

</BODY> </HTML>


     </source>