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,869
11년 전 조회 2,276
11년 전 조회 1,041
11년 전 조회 831
11년 전 조회 962
11년 전 조회 1,073
11년 전 조회 1,327
11년 전 조회 1.5만
11년 전 조회 1,435
11년 전 조회 589
11년 전 조회 623
11년 전 조회 887
11년 전 조회 3,157
11년 전 조회 985
11년 전 조회 756
11년 전 조회 801
11년 전 조회 658
11년 전 조회 836
11년 전 조회 1,590
11년 전 조회 574
11년 전 조회 1,014
11년 전 조회 1,684
11년 전 조회 532
11년 전 조회 1,404
11년 전 조회 729
11년 전 조회 874
11년 전 조회 1,327
11년 전 조회 1,614
11년 전 조회 591
11년 전 조회 1,164
11년 전 조회 506
11년 전 조회 3,654
11년 전 조회 1,079
11년 전 조회 1,324
11년 전 조회 1,149
11년 전 조회 589
11년 전 조회 729
11년 전 조회 622
11년 전 조회 5,069
11년 전 조회 570
11년 전 조회 580
11년 전 조회 3,031
11년 전 조회 892
11년 전 조회 4,430
11년 전 조회 1,812
11년 전 조회 2,621
11년 전 조회 560
11년 전 조회 578
11년 전 조회 1,439
11년 전 조회 628
11년 전 조회 1,595
11년 전 조회 1,578
11년 전 조회 4,458
11년 전 조회 965
11년 전 조회 2,127
11년 전 조회 1,402
11년 전 조회 1,440
11년 전 조회 1,518
11년 전 조회 750
11년 전 조회 1,609
11년 전 조회 467
11년 전 조회 3,755
11년 전 조회 1,848
11년 전 조회 1,649
11년 전 조회 1,300
11년 전 조회 6,816
11년 전 조회 1,266
11년 전 조회 865
11년 전 조회 2,362
11년 전 조회 1,699
11년 전 조회 820
11년 전 조회 1,217
11년 전 조회 2,597
11년 전 조회 1,965
11년 전 조회 1,800
11년 전 조회 2,095
11년 전 조회 2,363
11년 전 조회 3,143
11년 전 조회 2,707
11년 전 조회 2,805
11년 전 조회 3,513
11년 전 조회 3,273
11년 전 조회 682
11년 전 조회 4,174
11년 전 조회 5,180
11년 전 조회 902
11년 전 조회 2,112
11년 전 조회 1,285
11년 전 조회 628
11년 전 조회 1,018
11년 전 조회 676
11년 전 조회 2,682
11년 전 조회 1,666
11년 전 조회 676
11년 전 조회 808
11년 전 조회 1,203
11년 전 조회 841
11년 전 조회 907
11년 전 조회 836
11년 전 조회 819
🐛 버그신고