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,879
11년 전 조회 2,282
11년 전 조회 1,046
11년 전 조회 837
11년 전 조회 971
11년 전 조회 1,080
11년 전 조회 1,334
11년 전 조회 1.5만
11년 전 조회 1,445
11년 전 조회 597
11년 전 조회 628
11년 전 조회 893
11년 전 조회 3,163
11년 전 조회 990
11년 전 조회 763
11년 전 조회 806
11년 전 조회 663
11년 전 조회 840
11년 전 조회 1,597
11년 전 조회 580
11년 전 조회 1,019
11년 전 조회 1,691
11년 전 조회 537
11년 전 조회 1,413
11년 전 조회 735
11년 전 조회 881
11년 전 조회 1,333
11년 전 조회 1,620
11년 전 조회 595
11년 전 조회 1,168
11년 전 조회 512
11년 전 조회 3,660
11년 전 조회 1,083
11년 전 조회 1,329
11년 전 조회 1,154
11년 전 조회 597
11년 전 조회 735
11년 전 조회 626
11년 전 조회 5,073
11년 전 조회 575
11년 전 조회 587
11년 전 조회 3,041
11년 전 조회 895
11년 전 조회 4,434
11년 전 조회 1,815
11년 전 조회 2,624
11년 전 조회 564
11년 전 조회 583
11년 전 조회 1,450
11년 전 조회 635
11년 전 조회 1,606
11년 전 조회 1,580
11년 전 조회 4,469
11년 전 조회 970
11년 전 조회 2,133
11년 전 조회 1,408
11년 전 조회 1,446
11년 전 조회 1,524
11년 전 조회 753
11년 전 조회 1,617
11년 전 조회 473
11년 전 조회 3,761
11년 전 조회 1,853
11년 전 조회 1,655
11년 전 조회 1,306
11년 전 조회 6,823
11년 전 조회 1,271
11년 전 조회 870
11년 전 조회 2,365
11년 전 조회 1,705
11년 전 조회 826
11년 전 조회 1,220
11년 전 조회 2,603
11년 전 조회 1,973
11년 전 조회 1,804
11년 전 조회 2,096
11년 전 조회 2,369
11년 전 조회 3,150
11년 전 조회 2,714
11년 전 조회 2,810
11년 전 조회 3,518
11년 전 조회 3,279
11년 전 조회 685
11년 전 조회 4,181
11년 전 조회 5,186
11년 전 조회 904
11년 전 조회 2,117
11년 전 조회 1,294
11년 전 조회 631
11년 전 조회 1,022
11년 전 조회 678
11년 전 조회 2,688
11년 전 조회 1,671
11년 전 조회 679
11년 전 조회 809
11년 전 조회 1,208
11년 전 조회 845
11년 전 조회 910
11년 전 조회 841
11년 전 조회 825
🐛 버그신고