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년 전 조회 3,976
11년 전 조회 2,372
11년 전 조회 1,143
11년 전 조회 929
11년 전 조회 1,076
11년 전 조회 1,181
11년 전 조회 1,434
11년 전 조회 1.6만
11년 전 조회 1,537
11년 전 조회 695
11년 전 조회 729
11년 전 조회 994
11년 전 조회 3,271
11년 전 조회 1,085
11년 전 조회 865
11년 전 조회 902
11년 전 조회 757
11년 전 조회 933
11년 전 조회 1,701
11년 전 조회 672
11년 전 조회 1,118
11년 전 조회 1,785
11년 전 조회 627
11년 전 조회 1,510
11년 전 조회 836
11년 전 조회 971
11년 전 조회 1,428
11년 전 조회 1,730
11년 전 조회 683
11년 전 조회 1,259
11년 전 조회 603
11년 전 조회 3,759
11년 전 조회 1,167
11년 전 조회 1,422
11년 전 조회 1,259
11년 전 조회 693
11년 전 조회 830
11년 전 조회 724
11년 전 조회 5,169
11년 전 조회 666
11년 전 조회 685
11년 전 조회 3,141
11년 전 조회 997
11년 전 조회 4,541
11년 전 조회 1,918
11년 전 조회 2,718
11년 전 조회 666
11년 전 조회 679
11년 전 조회 1,542
11년 전 조회 728
11년 전 조회 1,689
11년 전 조회 1,666
11년 전 조회 4,569
11년 전 조회 1,073
11년 전 조회 2,223
11년 전 조회 1,497
11년 전 조회 1,551
11년 전 조회 1,619
11년 전 조회 862
11년 전 조회 1,711
11년 전 조회 561
11년 전 조회 3,857
11년 전 조회 1,954
11년 전 조회 1,753
11년 전 조회 1,405
11년 전 조회 6,916
11년 전 조회 1,363
11년 전 조회 967
11년 전 조회 2,464
11년 전 조회 1,804
11년 전 조회 910
11년 전 조회 1,320
11년 전 조회 2,695
11년 전 조회 2,076
11년 전 조회 1,898
11년 전 조회 2,180
11년 전 조회 2,471
11년 전 조회 3,246
11년 전 조회 2,810
11년 전 조회 2,905
11년 전 조회 3,616
11년 전 조회 3,382
11년 전 조회 770
11년 전 조회 4,274
11년 전 조회 5,302
11년 전 조회 1,000
11년 전 조회 2,212
11년 전 조회 1,376
11년 전 조회 729
11년 전 조회 1,123
11년 전 조회 774
11년 전 조회 2,788
11년 전 조회 1,779
11년 전 조회 779
11년 전 조회 905
11년 전 조회 1,292
11년 전 조회 932
11년 전 조회 1,012
11년 전 조회 935
11년 전 조회 917
🐛 버그신고