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,961
11년 전 조회 2,361
11년 전 조회 1,135
11년 전 조회 915
11년 전 조회 1,066
11년 전 조회 1,171
11년 전 조회 1,421
11년 전 조회 1.6만
11년 전 조회 1,525
11년 전 조회 687
11년 전 조회 714
11년 전 조회 985
11년 전 조회 3,260
11년 전 조회 1,071
11년 전 조회 852
11년 전 조회 891
11년 전 조회 746
11년 전 조회 921
11년 전 조회 1,690
11년 전 조회 659
11년 전 조회 1,106
11년 전 조회 1,770
11년 전 조회 614
11년 전 조회 1,498
11년 전 조회 818
11년 전 조회 959
11년 전 조회 1,418
11년 전 조회 1,713
11년 전 조회 677
11년 전 조회 1,248
11년 전 조회 591
11년 전 조회 3,744
11년 전 조회 1,157
11년 전 조회 1,406
11년 전 조회 1,246
11년 전 조회 680
11년 전 조회 819
11년 전 조회 713
11년 전 조회 5,159
11년 전 조회 658
11년 전 조회 673
11년 전 조회 3,130
11년 전 조회 980
11년 전 조회 4,523
11년 전 조회 1,912
11년 전 조회 2,704
11년 전 조회 653
11년 전 조회 668
11년 전 조회 1,531
11년 전 조회 713
11년 전 조회 1,681
11년 전 조회 1,658
11년 전 조회 4,555
11년 전 조회 1,060
11년 전 조회 2,210
11년 전 조회 1,490
11년 전 조회 1,544
11년 전 조회 1,601
11년 전 조회 846
11년 전 조회 1,700
11년 전 조회 554
11년 전 조회 3,845
11년 전 조회 1,943
11년 전 조회 1,733
11년 전 조회 1,393
11년 전 조회 6,901
11년 전 조회 1,348
11년 전 조회 954
11년 전 조회 2,453
11년 전 조회 1,794
11년 전 조회 901
11년 전 조회 1,305
11년 전 조회 2,676
11년 전 조회 2,061
11년 전 조회 1,884
11년 전 조회 2,171
11년 전 조회 2,450
11년 전 조회 3,236
11년 전 조회 2,797
11년 전 조회 2,890
11년 전 조회 3,602
11년 전 조회 3,366
11년 전 조회 757
11년 전 조회 4,265
11년 전 조회 5,284
11년 전 조회 988
11년 전 조회 2,201
11년 전 조회 1,367
11년 전 조회 716
11년 전 조회 1,108
11년 전 조회 762
11년 전 조회 2,766
11년 전 조회 1,762
11년 전 조회 758
11년 전 조회 890
11년 전 조회 1,279
11년 전 조회 918
11년 전 조회 995
11년 전 조회 921
11년 전 조회 900
🐛 버그신고