Baseline Widely available
areas
㯠HTMLMapElement
ã¤ã³ã¿ã¼ãã§ã¤ã¹ã®èªã¿åãå°ç¨ããããã£ã§ããã® <map>
è¦ç´ ã«é¢é£ä»ãããã <area>
è¦ç´ ã®éåãè¿ãã¾ãã
HTMLCollection
ãªãã¸ã§ã¯ãã§ãHTMLAreaElement
è¦ç´ ã®éåã表ãã¾ãã
<map id="image-map">
<area shape="circle" coords="50,50,35" alt="å·¦ç¢å°" />
<area shape="circle" coords="150,50,35" alt="å³ç¢å°" />
</map>
<img
usemap="#image-map"
src="left-right-arrow.png"
alt="left right arrow image" />
<output></output>
output {
display: block;
}
const mapElement = document.getElementById("image-map");
const outputElement = document.querySelector("output");
for (const area of mapElement.areas) {
area.addEventListener("click", (event) => {
outputElement.textContent = `${area.alt}ã¨ãªã¢ãã¯ãªãã¯ãã¾ããã\n\n`;
});
}
çµæ 仿§æ¸ ãã©ã¦ã¶ã¼ã®äºææ§ é¢é£æ
å ±
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4