HTML DOM własność Usemap Obraz
Definicja i Wykorzystanie
Zestawy Własności Wartość Usemap lub zwraca obraz Usemap nieruchomości.
atrybut Usemap określa obraz z mapami po stronie klienta obrazu (klikalne obszary obrazu MAP).
Usemap atrybuty i nazwy związane elementem map atrybutów, dwa może stworzyć stowarzyszenie między obrazami i mapami.
gramatyka
imageObject.useMap=value
Usemap właściwość może mieć następujące wartości:
值 | 描述 |
---|---|
#mapname | 一个哈希字符("#")加上map元素的名称 |
Pomoc Browser
Wszystkie główne przeglądarki obsługują właściwość Usemap
Przykłady
Przykłady
Zwraca mapy klient graficznych wartości właściwości Usemap:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>本教程(w3big.com)</title>
</head>
<body>
<img id="planets" src="planets.gif" width="145" height="126" usemap="#planetmap">
<map name="planetmap">
<area id="venus" shape="circle" coords="124,58,8" alt="The planet Venus" href="venus.htm">
</map>
<p>usemap属性的值:
<script>
document.write(document.getElementById("planets").useMap);
</script>
</p>
</body>
</html>
<html>
<head>
<meta charset="utf-8">
<title>本教程(w3big.com)</title>
</head>
<body>
<img id="planets" src="planets.gif" width="145" height="126" usemap="#planetmap">
<map name="planetmap">
<area id="venus" shape="circle" coords="124,58,8" alt="The planet Venus" href="venus.htm">
</map>
<p>usemap属性的值:
<script>
document.write(document.getElementById("planets").useMap);
</script>
</p>
</body>
</html>
Spróbuj »
Obiekt Obraz