¹®¼¿¡ ±â¼úµÈ ¼ø¼·Î ±¸¼ºµÈ ¸ðµç map °³Ã¼¿¡ ¼Ò¼ÓµÈ area °³Ã¼µéÀÇ ¹è¿º¯¼öÀÎ Ä÷º¼ÇÀ» ¹ÝȯÇÑ´Ù.
areas¿¡ area¸¦ Ãß°¡Çϰųª »èÁ¦ÇÒ ¼ö ÀÖ´Ù.
°°Àº ÀνÄÀÚµéÀÌ ÀÖÀ¸¸é ±× ÀνÄÀÚ À̸§À¸·Î Ä÷º¼ÇÀÌ ¹ÝȯµÇ¸ç, ¹è¿º¯¼ö ±ÔÄ¢¿¡ µû¶ó ÂüÁ¶ÇÏ¿©¾ß ÇÑ´Ù.
area¸¦ Ãß°¡Çϱâ À§Çؼ´Â createElement¿Í add ¸Þ¼µåµéÀ» »ç¿ëÇϸç, insertAdjacentHTML ¸Þ¼µå¸¦ »ç¿ëÇÒ ¼öµµ ÀÖ´Ù.
°³Ã¼ | script | HTML | ±Ô°Ý | IE |
---|
ÀÌ Ä÷º¼ÇÀº (¿µ¹®)DOM Level 1(W3C Document Object Model)¿¡ Á¤ÀǵǾú´Ù.
¼³¸íÀ» À§ÇÑ ¿¹Á¦
<IMG src="../../gif/mapsample.gif" usemap="#mapname" border=1> <MAP name="mapname"> <AREA id=areaObj shape="rect" coords="1,1,86,26" href="http://trio.co.kr/autorefer.html#top" target="_html" name="area1" accessKey="j" add="testAdd" alt="À¥¹è¿ì±â" tabIndex="1"> <AREA id=area2 shape="rect" coords="1,27,86,52" href="http://trio.co.kr/autositelink.html" target="_html"> <AREA id=area3 shape="rect" coords="1,53,86,78" href="http://trio.co.kr/main/index.html" target="_html"> <AREA id=area4 shape="rect" coords="1,79,86,106" href="http://koxo.com/bbs/koxobbs.cgi?db=bbs" target="_html"> <AREA id=area5 shape="rect" coords="1,107,86,130" href="http://trio.co.kr/main/sitemap.html" target="_html"></MAP> |