HTML CSS Reference/HTML Attributes Reference/ismap

Материал из Web эксперт
Версия от 11:20, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

"ismap" Example

   <source lang="html4strict">
   

<HTML> <head> <Title>Example For</Title> <script language="JavaScript">

  function function1() {
     var x = document.getElementById("myimage").isMap;
     if (x == true) {
        alert("Yes"); 
     }
  }

</script> </head> <body>

 <img id="myimage" 
      src="http://www.wbex.ru/style/logo.png" 
      width=300 
      height=100 
      usemap="#myMap"
      ismap="false">
      <map name="myMap">
        <area shape="rect" coords="0, 0, 100, 50" href=http://www.wbex.ru>
        <area shape="rect" coords="200, 50, 300, 100" href="http://www.google.ru">
      </map>
      <input type="button" value="Is this image a server-side map?" onClick="function1()">

</body> <BODY> </BODY> </HTML>

     </source>
   
  


ismap is applied to

   <source lang="html4strict">

+----------------+--------------------------------------------------------------+ | Applied_To |<img> | +----------------+--------------------------------------------------------------+

     </source>
   
  


"ismap" Syntax and Note

   <source lang="html4strict">

Note:

Whether the image in the <img> element is a server-side image map. It is a Boolean attribute. Possible values is true or false.

Syntax:

<img ismap="value">


     </source>