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

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

QA

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

답변 2

본문

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

소스코드


<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&wr_id=50" /><area shape="rect" coords="441,104,804,460" href="https://woosungent.cafe24.com/gnuboard/bbs/board.php?bo_table=result03&wr_id=54" /><area shape="rect" coords="2,104,364,459" href="https://woosungent.cafe24.com/gnuboard/bbs/board.php?bo_table=result03&wr_id=54#" /><area shape="rect" coords="1,509,361,865" href="https://woosungent.cafe24.com/gnuboard/bbs/board.php?bo_table=result03&wr_id=55#" /><area shape="rect" coords="441,510,799,865" href="https://woosungent.cafe24.com/gnuboard/bbs/board.php?bo_table=result03&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&wr_id=56#1;" />
</map></li>
</ul></div>

이 질문에 댓글 쓰기 :

답변 2

/gnuboard/bbs/board.php

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


<script>
window.onload = function() {}
window.scrollTop = 0;
window.parent.scrollTop = 0;
</script>

지금은 iframe을 사용하신거고

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

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

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

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 129,111
© SIRSOFT
현재 페이지 제일 처음으로