'ismap' : ismap : Images HTML CSS TUTORIALS


HTML CSS TUTORIALS » Images » ismap »

 

'ismap'



    
<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.navioo.com/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.navioo.com>
         <area shape="rect" coords="200, 50, 300, 100" href="http://www.google.com">
       </map>
       <input type="button" value="Is this image a server-side map?" onClick="function1()">
</body>
<BODY>
</BODY>
</HTML>  
    
      
      



HTML code for linking to this page:

Follow Navioo On Twitter

HTML CSS TUTORIALS

 Navioo Images
» ismap