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,881
11년 전 조회 2,283
11년 전 조회 1,047
11년 전 조회 840
11년 전 조회 972
11년 전 조회 1,082
11년 전 조회 1,335
11년 전 조회 1.5만
11년 전 조회 1,445
11년 전 조회 599
11년 전 조회 631
11년 전 조회 894
11년 전 조회 3,164
11년 전 조회 991
11년 전 조회 767
11년 전 조회 810
11년 전 조회 667
11년 전 조회 843
11년 전 조회 1,599
11년 전 조회 581
11년 전 조회 1,021
11년 전 조회 1,692
11년 전 조회 538
11년 전 조회 1,414
11년 전 조회 737
11년 전 조회 882
11년 전 조회 1,333
11년 전 조회 1,621
11년 전 조회 595
11년 전 조회 1,168
11년 전 조회 514
11년 전 조회 3,660
11년 전 조회 1,083
11년 전 조회 1,330
11년 전 조회 1,154
11년 전 조회 600
11년 전 조회 736
11년 전 조회 626
11년 전 조회 5,074
11년 전 조회 575
11년 전 조회 588
11년 전 조회 3,045
11년 전 조회 895
11년 전 조회 4,436
11년 전 조회 1,815
11년 전 조회 2,625
11년 전 조회 564
11년 전 조회 585
11년 전 조회 1,453
11년 전 조회 638
11년 전 조회 1,607
11년 전 조회 1,580
11년 전 조회 4,470
11년 전 조회 972
11년 전 조회 2,134
11년 전 조회 1,411
11년 전 조회 1,448
11년 전 조회 1,526
11년 전 조회 755
11년 전 조회 1,618
11년 전 조회 475
11년 전 조회 3,761
11년 전 조회 1,854
11년 전 조회 1,657
11년 전 조회 1,306
11년 전 조회 6,824
11년 전 조회 1,272
11년 전 조회 870
11년 전 조회 2,365
11년 전 조회 1,706
11년 전 조회 828
11년 전 조회 1,222
11년 전 조회 2,606
11년 전 조회 1,975
11년 전 조회 1,805
11년 전 조회 2,097
11년 전 조회 2,371
11년 전 조회 3,150
11년 전 조회 2,715
11년 전 조회 2,811
11년 전 조회 3,520
11년 전 조회 3,280
11년 전 조회 686
11년 전 조회 4,182
11년 전 조회 5,188
11년 전 조회 906
11년 전 조회 2,119
11년 전 조회 1,295
11년 전 조회 634
11년 전 조회 1,023
11년 전 조회 679
11년 전 조회 2,689
11년 전 조회 1,672
11년 전 조회 682
11년 전 조회 810
11년 전 조회 1,209
11년 전 조회 847
11년 전 조회 910
11년 전 조회 843
11년 전 조회 826
🐛 버그신고