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,884
11년 전 조회 2,285
11년 전 조회 1,050
11년 전 조회 844
11년 전 조회 979
11년 전 조회 1,087
11년 전 조회 1,340
11년 전 조회 1.5만
11년 전 조회 1,451
11년 전 조회 601
11년 전 조회 633
11년 전 조회 897
11년 전 조회 3,165
11년 전 조회 991
11년 전 조회 769
11년 전 조회 812
11년 전 조회 669
11년 전 조회 845
11년 전 조회 1,601
11년 전 조회 582
11년 전 조회 1,022
11년 전 조회 1,694
11년 전 조회 541
11년 전 조회 1,414
11년 전 조회 740
11년 전 조회 887
11년 전 조회 1,334
11년 전 조회 1,623
11년 전 조회 597
11년 전 조회 1,169
11년 전 조회 517
11년 전 조회 3,662
11년 전 조회 1,084
11년 전 조회 1,330
11년 전 조회 1,158
11년 전 조회 603
11년 전 조회 737
11년 전 조회 631
11년 전 조회 5,078
11년 전 조회 576
11년 전 조회 591
11년 전 조회 3,051
11년 전 조회 897
11년 전 조회 4,441
11년 전 조회 1,816
11년 전 조회 2,628
11년 전 조회 567
11년 전 조회 590
11년 전 조회 1,457
11년 전 조회 642
11년 전 조회 1,609
11년 전 조회 1,583
11년 전 조회 4,470
11년 전 조회 974
11년 전 조회 2,135
11년 전 조회 1,414
11년 전 조회 1,449
11년 전 조회 1,530
11년 전 조회 761
11년 전 조회 1,622
11년 전 조회 479
11년 전 조회 3,764
11년 전 조회 1,858
11년 전 조회 1,663
11년 전 조회 1,308
11년 전 조회 6,825
11년 전 조회 1,276
11년 전 조회 872
11년 전 조회 2,367
11년 전 조회 1,709
11년 전 조회 829
11년 전 조회 1,227
11년 전 조회 2,608
11년 전 조회 1,977
11년 전 조회 1,809
11년 전 조회 2,099
11년 전 조회 2,373
11년 전 조회 3,151
11년 전 조회 2,716
11년 전 조회 2,814
11년 전 조회 3,523
11년 전 조회 3,285
11년 전 조회 690
11년 전 조회 4,183
11년 전 조회 5,190
11년 전 조회 909
11년 전 조회 2,121
11년 전 조회 1,295
11년 전 조회 635
11년 전 조회 1,026
11년 전 조회 682
11년 전 조회 2,692
11년 전 조회 1,672
11년 전 조회 684
11년 전 조회 813
11년 전 조회 1,209
11년 전 조회 847
11년 전 조회 916
11년 전 조회 845
11년 전 조회 828
🐛 버그신고