" async="async"> ', { cookie_domain: 'auto', cookie_flags: 'max-age=0;domain=.tistory.com', cookie_expires: 7 * 24 * 60 * 60 // 7 days, in seconds }); HTML-맵핑(이미지 특정 부분 링크)

상세 컨텐츠

본문 제목

HTML-맵핑(이미지 특정 부분 링크)

HTML

by 가유연 2020. 3. 4. 14:12

본문

 

 

 

 

 

맵핑은 이미지 특정 부분에 링크를 거는 기능이다.

 

1. 좌표구하기

- 이미지 특정 부분에 넣을 좌표 번호를 알아야 한다. 이미지 좌표 구하는 법은 아래 링크된 페이지에 설명되어 있다.

https://ga-story.tistory.com/19

 

HTML- 이미지 좌표 구하기

방법1 알씨 프로그램으로 구하기 *추천 대상: 알씨 뷰어 프로그램이 있거나 빠르게 구할 때 사용 ① 알씨를 연결된 프로그램으로 이미지를 연다. (알씨 설치 링크 https://www.altools.co.kr/download/alsee.aspx..

ga-story.tistory.com

 

 

 

2. 맵핑 코드 예시

<img src="#이미지" usemap="#001" border="0">

<map name="001">
 
<area shape="rect" coords="###" href="#링크1" target="blank">

<area shape="rect" coords="###" href="#링크2"target="blank">

<area shape="rect" coords="###" href="#링크3"target="blank">

</map>

- #이미지 부분에는 전체 메인 이미지 주소를 입력한다.

-  coords  부분에는 1에서 구한 이미지 좌표 번호를 입력하면 된다.

 

 

 

 

 

 

 

 

관련글 더보기

댓글 영역