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,061
11년 전 조회 2,458
11년 전 조회 1,242
11년 전 조회 1,038
11년 전 조회 1,171
11년 전 조회 1,272
11년 전 조회 1,527
11년 전 조회 1.6만
11년 전 조회 1,637
11년 전 조회 791
11년 전 조회 827
11년 전 조회 1,070
11년 전 조회 3,350
11년 전 조회 1,188
11년 전 조회 960
11년 전 조회 1,009
11년 전 조회 863
11년 전 조회 1,020
11년 전 조회 1,803
11년 전 조회 782
11년 전 조회 1,216
11년 전 조회 1,887
11년 전 조회 735
11년 전 조회 1,608
11년 전 조회 920
11년 전 조회 1,059
11년 전 조회 1,530
11년 전 조회 1,815
11년 전 조회 785
11년 전 조회 1,353
11년 전 조회 699
11년 전 조회 3,857
11년 전 조회 1,278
11년 전 조회 1,521
11년 전 조회 1,356
11년 전 조회 780
11년 전 조회 909
11년 전 조회 814
11년 전 조회 5,257
11년 전 조회 773
11년 전 조회 777
11년 전 조회 3,222
11년 전 조회 1,086
11년 전 조회 4,614
11년 전 조회 2,012
11년 전 조회 2,800
11년 전 조회 756
11년 전 조회 774
11년 전 조회 1,625
11년 전 조회 810
11년 전 조회 1,776
11년 전 조회 1,730
11년 전 조회 4,666
11년 전 조회 1,154
11년 전 조회 2,301
11년 전 조회 1,578
11년 전 조회 1,617
11년 전 조회 1,690
11년 전 조회 958
11년 전 조회 1,791
11년 전 조회 666
11년 전 조회 3,948
11년 전 조회 2,033
11년 전 조회 1,834
11년 전 조회 1,497
11년 전 조회 6,996
11년 전 조회 1,475
11년 전 조회 1,056
11년 전 조회 2,536
11년 전 조회 1,898
11년 전 조회 1,004
11년 전 조회 1,421
11년 전 조회 2,763
11년 전 조회 2,169
11년 전 조회 1,998
11년 전 조회 2,272
11년 전 조회 2,559
11년 전 조회 3,343
11년 전 조회 2,904
11년 전 조회 2,986
11년 전 조회 3,698
11년 전 조회 3,484
11년 전 조회 869
11년 전 조회 4,367
11년 전 조회 5,394
11년 전 조회 1,084
11년 전 조회 2,301
11년 전 조회 1,466
11년 전 조회 822
11년 전 조회 1,211
11년 전 조회 859
11년 전 조회 2,888
11년 전 조회 1,881
11년 전 조회 861
11년 전 조회 1,000
11년 전 조회 1,380
11년 전 조회 1,039
11년 전 조회 1,083
11년 전 조회 1,037
11년 전 조회 1,013