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:;"
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

+
제목 글쓴이 날짜 조회
11년 전 조회 4,044
11년 전 조회 2,445
11년 전 조회 1,222
11년 전 조회 1,018
11년 전 조회 1,152
11년 전 조회 1,251
11년 전 조회 1,511
11년 전 조회 1.6만
11년 전 조회 1,622
11년 전 조회 768
11년 전 조회 809
11년 전 조회 1,063
11년 전 조회 3,338
11년 전 조회 1,168
11년 전 조회 941
11년 전 조회 988
11년 전 조회 845
11년 전 조회 1,008
11년 전 조회 1,777
11년 전 조회 761
11년 전 조회 1,194
11년 전 조회 1,869
11년 전 조회 715
11년 전 조회 1,587
11년 전 조회 901
11년 전 조회 1,044
11년 전 조회 1,512
11년 전 조회 1,805
11년 전 조회 768
11년 전 조회 1,341
11년 전 조회 689
11년 전 조회 3,837
11년 전 조회 1,256
11년 전 조회 1,503
11년 전 조회 1,333
11년 전 조회 768
11년 전 조회 898
11년 전 조회 796
11년 전 조회 5,246
11년 전 조회 750
11년 전 조회 755
11년 전 조회 3,210
11년 전 조회 1,069
11년 전 조회 4,603
11년 전 조회 1,990
11년 전 조회 2,783
11년 전 조회 746
11년 전 조회 759
11년 전 조회 1,613
11년 전 조회 798
11년 전 조회 1,767
11년 전 조회 1,724
11년 전 조회 4,645
11년 전 조회 1,144
11년 전 조회 2,296
11년 전 조회 1,561
11년 전 조회 1,607
11년 전 조회 1,679
11년 전 조회 938
11년 전 조회 1,777
11년 전 조회 648
11년 전 조회 3,937
11년 전 조회 2,016
11년 전 조회 1,817
11년 전 조회 1,481
11년 전 조회 6,980
11년 전 조회 1,451
11년 전 조회 1,038
11년 전 조회 2,520
11년 전 조회 1,879
11년 전 조회 990
11년 전 조회 1,403
11년 전 조회 2,752
11년 전 조회 2,152
11년 전 조회 1,975
11년 전 조회 2,259
11년 전 조회 2,549
11년 전 조회 3,327
11년 전 조회 2,883
11년 전 조회 2,977
11년 전 조회 3,685
11년 전 조회 3,463
11년 전 조회 855
11년 전 조회 4,350
11년 전 조회 5,379
11년 전 조회 1,069
11년 전 조회 2,288
11년 전 조회 1,455
11년 전 조회 805
11년 전 조회 1,199
11년 전 조회 840
11년 전 조회 2,872
11년 전 조회 1,869
11년 전 조회 851
11년 전 조회 983
11년 전 조회 1,367
11년 전 조회 1,019
11년 전 조회 1,076
11년 전 조회 1,017
11년 전 조회 998
🐛 버그신고