이미지맵 + 슬라이더연동(bxslider) 코드질문입니다.
본문
상단에 이미지맵으로 13개의 이미지맵 링크가 있고,
링크 클릭시 해당하는 이미지가 그 아래 bxslider에서 이미지가 나오도록 코드를 작성하였는데..
아무리 고민해도 답이 안나옵니다..
https://sir.kr/qa/102359?sfl=mb_id%2C1&lstx=kshajiny
예전에 작성된 위의 글과 댓글들을 참조하여 작성하였으나 도무지 진전이 없어 질문을 올립니다..
여기까지 작성된 코드를 어떻게 수정하면 좋을까요?
<div class="product_area">
<img src="<?=G5_THEME_URL?>/img/product/01/layout.jpg" width="100%" usemap="#product01_01">
<map name="product01_01">
<area shape="rect" coords="52, 462, 79, 488" href="javascript:custom_function(0);">
<area shape="rect" coords="133, 462, 161, 488" href="javascript:custom_function(1);">
<area shape="rect" coords="461, 462, 490, 488" href="javascript:custom_function(2);">
<area shape="rect" coords="494, 462, 522, 488" href="javascript:custom_function(3);">
<area shape="rect" coords="532, 462, 556, 488" href="javascript:custom_function(4);">
<area shape="rect" coords="858, 462, 888, 488" href="javascript:custom_function(5);">
<area shape="rect" coords="937, 462, 966, 488" href="javascript:custom_function(6);">
<area shape="rect" coords="983, 462, 1012, 488" href="javascript:custom_function(7);">
<area shape="rect" coords="1032, 462, 1063, 488" href="javascript:custom_function(8);">
<area shape="rect" coords="1072, 462, 1098, 488" href="javascript:custom_function(9);">
<area shape="rect" coords="1136, 462, 1163, 488" href="javascript:custom_function(10);">
<area shape="rect" coords="263, 72, 287, 94" href="javascript:custom_function(11);">
<area shape="rect" coords="729, 72, 756, 94" href="javascript:custom_function(12);">
</map>
<div class="slider">
<div><img src="<?=G5_THEME_URL?>/img/product/01/01.jpg" width="100%"></div>
<div><img src="<?=G5_THEME_URL?>/img/product/01/02.jpg" width="100%"></div>
<div><img src="<?=G5_THEME_URL?>/img/product/01/03.jpg" width="100%"></div>
<div><img src="<?=G5_THEME_URL?>/img/product/01/04.jpg" width="100%"></div>
<div><img src="<?=G5_THEME_URL?>/img/product/01/05.jpg" width="100%"></div>
<div><img src="<?=G5_THEME_URL?>/img/product/01/06.jpg" width="100%"></div>
<div><img src="<?=G5_THEME_URL?>/img/product/01/07.jpg" width="100%"></div>
<div><img src="<?=G5_THEME_URL?>/img/product/01/08.jpg" width="100%"></div>
<div><img src="<?=G5_THEME_URL?>/img/product/01/09.jpg" width="100%"></div>
<div><img src="<?=G5_THEME_URL?>/img/product/01/10.jpg" width="100%"></div>
<div><img src="<?=G5_THEME_URL?>/img/product/01/11.jpg" width="100%"></div>
<div><img src="<?=G5_THEME_URL?>/img/product/01/12.jpg" width="100%"></div>
<div><img src="<?=G5_THEME_URL?>/img/product/01/12.jpg" width="100%"></div>
</div>
<script>
$(function(){
$('.slider').bxSlider({
mode: 'fade',
captions: true,
});
});
</script>
</div>
답변을 작성하시기 전에 로그인 해주세요.