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

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

QA

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

답변 2

본문

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

이 질문에 댓글 쓰기 :

답변 2

클릭사건 이후 스코롤시작점을 0으로 재설정 하면 될거 같습니다.

window.scrollTop = 0;

이렇게 말이죠.... 한번 해보시구 안되면 다시 연락주세요.

이게 소스코드입니다.


<div>
<li><img src="../../assets/images/product/scrubber/1/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" />
</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" />
</map></li>
</ul></div>

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