채택완료

클릭시 화면 상단부터 나올수 있게 처리하고 싶습니다.

https://woosungent.com/product06.php  에서 이미지를 한개 클릭하고 들어가면 하단에 설치사례라는 이미지가 잇습니다. 클릭하면 화면 중간부분이 나오는데 이것을 화면 상단이나 타이틀부분이 먼저 나올 수 있게 수정이 가능할까요? 앵커를 쓰면될까요? #으로 처리하면 됐었는데 안먹네요 도와주세요

소스코드

Copy
<div>
<li><img src="../../assets/images/product/wbf/detail01.jpg" width="1244" height="1538" usemap="#Map" border="0" />
<map name="Map" id="Map">
  <area shape="rect" coords="614,247,909,297" href="../../order.php" target="_top" / window.scrollTop = 0;/>
</map></li>
<li><img src="../../assets/images/product/wap/detail02.jpg" width="1244" height="1020" usemap="#p1" border="0" />
<map name="p1" id="p1"><area shape="rect" coords="880,105,1239,460" href="https://woosungent.cafe24.com/gnuboard/bbs/board.php?bo_table=result03&amp;wr_id=50" /><area shape="rect" coords="441,104,804,460" href="https://woosungent.cafe24.com/gnuboard/bbs/board.php?bo_table=result03&amp;wr_id=54" /><area shape="rect" coords="2,104,364,459" href="https://woosungent.cafe24.com/gnuboard/bbs/board.php?bo_table=result03&amp;wr_id=54#" /><area shape="rect" coords="1,509,361,865" href="https://woosungent.cafe24.com/gnuboard/bbs/board.php?bo_table=result03&amp;wr_id=55#" /><area shape="rect" coords="441,510,799,865" href="https://woosungent.cafe24.com/gnuboard/bbs/board.php?bo_table=result03&amp;wr_id=57#" />
  <area shape="rect" coords="441,919,800,991" href="../../result03.php" target="_top" />
  <area shape="rect" coords="880,510,1241,865" href="https://woosungent.cafe24.com/gnuboard/bbs/board.php?bo_table=result03&amp;wr_id=56#1;" />
</map></li>
</ul></div>

답변 2개 / 댓글 1개

채택된 답변
+20 포인트

/gnuboard/bbs/board.php

파일에서 제일 마지막 부분에 <!-- 사용스킨 : eltree-gallery-responsive --> 이라고 쓴 행 다음에 아래 코드 삽입해보세요.

Copy
<script>

window.onload = function() {}

window.scrollTop = 0;

window.parent.scrollTop = 0;

</script>

지금은 iframe을 사용하신거고

실제 링크는 iframe에서 발생하고 있는것 입니다.

굳이 상단부터 나오게 하실 이유가 있으신가요?

현재도 보기에는 문제가 없어 보입니다.

답변에 대한 댓글 1개

위로 올려봐야하는 불편함이 있습니다.

답변을 작성하려면 로그인이 필요합니다.