Image.useMap

クライアントサイドクリッカブルマップで使用されているマップ名を参照/設定します。

構文

画像オブジェクト.useMap

例文

<html>
 <head>
  <title>Image.useMap</title>
  <script type="text/javascript"><!--
  window.onload = function() {
   var txt = document.getElementById("myPhoto").useMap;
   document.getElementById("result").innerHTML = txt;
  }
  // --></script>
 </head>
 <body>
 <img src="photo.gif" id="myPhoto" usemap="#map1">
 <map name="map1">
  <area shape="rect" coords="0,0,32,10" href="1.html">
 </map>
 <div id="result"></div>
 </body>
</html>

関連記事

スポンサーリンク

CHAR_LENGTH関数 文字列長を求める

ホームページ製作・web系アプリ系の製作案件募集中です。

上に戻る