onclick 소스 질문 드립니다.

onclick으로 링크해서 div 두개가 탭 형식으로 왔다 갔다 하는데...


열리는건 잘 열리는데... 해당 자리에서 움직여야 하는데... 스크롤 탑으로 이동을 합니다.


이거 해결할수 있는 방법을 아시면 부탁좀 드립니다.


작동은 하는데 맨 위로 이동을 합니다.




<div id="layers_1">
<table width="1200" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td style="padding-top:30px;padding-bottom:25px">
<table width="1200" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="191">
   <a name="buttons" href="#" onclick="show_over(this); show_layer('layers_1');"><img src="/images/main/main_list_title1_over.png"><img src="/images/main/main_list_title1_over.png" style="display:none;"></a>
  </td>
        <td width="191">
   <a name="buttons" href="#" onclick="show_over(this); show_layer('layers_2');"><img src="/images/main/main_list_title2.png"><img src="/images/main/main_list_title2_over.png" style="display:none;"></a>
  </td>
        <td background="images/main/main_list_bg.png">&nbsp;</td>
      </tr>
</table>
    </td>
  </tr>
</table>
<? echo latest2("index_portfolio_140314", "portfolio_01", 16, 30); ?>
</div>


<div id="layers_2" style="display:none;">
<table width="1200" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td style="padding-top:30px;padding-bottom:25px">
<table width="1200" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="191">
   <a name="buttons" href="#" onclick="show_over(this); show_layer('layers_1');"><img src="/images/main/main_list_title1.png"><img src="/images/main/main_list_title1_over.png" style="display:none;"></a>
  </td>
        <td width="191">
   <a name="buttons" href="#" onclick="show_over(this); show_layer('layers_2');"><img src="/images/main/main_list_title2_over.png"><img src="/images/main/main_list_title2_over.png" style="display:none;"></a>
  </td>
        <td background="images/main/main_list_bg.png">&nbsp;</td>
      </tr>
</table>
    </td>
  </tr>
</table>

<? echo latest2("index_portfolio_140314", "portfolio_02", 16, 30);  ?>

</div>

|

댓글 1개

href="#" => href="javascript:;"
댓글을 작성하시려면 로그인이 필요합니다. 로그인

프로그램

태그 필터 (최대 3개) 전체 개발자 소스 기타 mysql 팁자료실 javascript php linux flash 정규표현식 jquery node.js mobile 웹서버 os 프로그램 강좌 썸네일 이미지관련 도로명주소 그누보드5 기획자 견적서 계약서 기획서 마케팅 제안서 seo 통계 서식 통계자료 퍼블리셔 html css 반응형 웹접근성 퍼블리싱 표준화 반응형웹 홈페이지기초 부트스트랩 angularjs 포럼 스크린리더 센스리더 개발자톡 개발자팁 퍼블리셔톡 퍼블리셔팁 기획자톡 기획자팁 프로그램강좌 퍼블리싱강좌
+
제목 글쓴이 날짜 조회
11년 전 조회 4,013
11년 전 조회 2,423
11년 전 조회 1,184
11년 전 조회 976
11년 전 조회 1,123
11년 전 조회 1,223
11년 전 조회 1,479
11년 전 조회 1.6만
11년 전 조회 1,596
11년 전 조회 739
11년 전 조회 772
11년 전 조회 1,035
11년 전 조회 3,309
11년 전 조회 1,136
11년 전 조회 908
11년 전 조회 950
11년 전 조회 808
11년 전 조회 987
11년 전 조회 1,746
11년 전 조회 722
11년 전 조회 1,160
11년 전 조회 1,824
11년 전 조회 683
11년 전 조회 1,548
11년 전 조회 874
11년 전 조회 1,016
11년 전 조회 1,474
11년 전 조회 1,770
11년 전 조회 730
11년 전 조회 1,307
11년 전 조회 650
11년 전 조회 3,800
11년 전 조회 1,213
11년 전 조회 1,468
11년 전 조회 1,301
11년 전 조회 740
11년 전 조회 867
11년 전 조회 768
11년 전 조회 5,214
11년 전 조회 707
11년 전 조회 729
11년 전 조회 3,183
11년 전 조회 1,034
11년 전 조회 4,577
11년 전 조회 1,955
11년 전 조회 2,756
11년 전 조회 712
11년 전 조회 737
11년 전 조회 1,592
11년 전 조회 775
11년 전 조회 1,735
11년 전 조회 1,698
11년 전 조회 4,613
11년 전 조회 1,110
11년 전 조회 2,267
11년 전 조회 1,538
11년 전 조회 1,591
11년 전 조회 1,654
11년 전 조회 903
11년 전 조회 1,749
11년 전 조회 610
11년 전 조회 3,907
11년 전 조회 1,994
11년 전 조회 1,794
11년 전 조회 1,455
11년 전 조회 6,958
11년 전 조회 1,414
11년 전 조회 1,013
11년 전 조회 2,501
11년 전 조회 1,856
11년 전 조회 959
11년 전 조회 1,369
11년 전 조회 2,730
11년 전 조회 2,114
11년 전 조회 1,939
11년 전 조회 2,227
11년 전 조회 2,512
11년 전 조회 3,294
11년 전 조회 2,857
11년 전 조회 2,955
11년 전 조회 3,658
11년 전 조회 3,432
11년 전 조회 819
11년 전 조회 4,317
11년 전 조회 5,348
11년 전 조회 1,044
11년 전 조회 2,262
11년 전 조회 1,428
11년 전 조회 773
11년 전 조회 1,169
11년 전 조회 812
11년 전 조회 2,832
11년 전 조회 1,825
11년 전 조회 827
11년 전 조회 955
11년 전 조회 1,341
11년 전 조회 984
11년 전 조회 1,042
11년 전 조회 979
11년 전 조회 960
🐛 버그신고