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,854
11년 전 조회 2,252
11년 전 조회 1,017
11년 전 조회 807
11년 전 조회 940
11년 전 조회 1,048
11년 전 조회 1,305
11년 전 조회 1.5만
11년 전 조회 1,411
11년 전 조회 564
11년 전 조회 598
11년 전 조회 868
11년 전 조회 3,133
11년 전 조회 960
11년 전 조회 734
11년 전 조회 778
11년 전 조회 634
11년 전 조회 816
11년 전 조회 1,568
11년 전 조회 551
11년 전 조회 990
11년 전 조회 1,660
11년 전 조회 508
11년 전 조회 1,379
11년 전 조회 707
11년 전 조회 852
11년 전 조회 1,302
11년 전 조회 1,588
11년 전 조회 565
11년 전 조회 1,139
11년 전 조회 484
11년 전 조회 3,630
11년 전 조회 1,057
11년 전 조회 1,303
11년 전 조회 1,125
11년 전 조회 576
11년 전 조회 709
11년 전 조회 594
11년 전 조회 5,046
11년 전 조회 545
11년 전 조회 564
11년 전 조회 3,017
11년 전 조회 869
11년 전 조회 4,408
11년 전 조회 1,790
11년 전 조회 2,601
11년 전 조회 537
11년 전 조회 556
11년 전 조회 1,427
11년 전 조회 612
11년 전 조회 1,580
11년 전 조회 1,567
11년 전 조회 4,439
11년 전 조회 945
11년 전 조회 2,109
11년 전 조회 1,387
11년 전 조회 1,424
11년 전 조회 1,506
11년 전 조회 726
11년 전 조회 1,595
11년 전 조회 443
11년 전 조회 3,732
11년 전 조회 1,828
11년 전 조회 1,632
11년 전 조회 1,278
11년 전 조회 6,794
11년 전 조회 1,245
11년 전 조회 842
11년 전 조회 2,351
11년 전 조회 1,675
11년 전 조회 802
11년 전 조회 1,192
11년 전 조회 2,580
11년 전 조회 1,940
11년 전 조회 1,773
11년 전 조회 2,073
11년 전 조회 2,342
11년 전 조회 3,120
11년 전 조회 2,686
11년 전 조회 2,786
11년 전 조회 3,492
11년 전 조회 3,252
11년 전 조회 671
11년 전 조회 4,154
11년 전 조회 5,161
11년 전 조회 880
11년 전 조회 2,091
11년 전 조회 1,266
11년 전 조회 606
11년 전 조회 1,000
11년 전 조회 657
11년 전 조회 2,662
11년 전 조회 1,644
11년 전 조회 655
11년 전 조회 787
11년 전 조회 1,186
11년 전 조회 819
11년 전 조회 899
11년 전 조회 816
11년 전 조회 794
🐛 버그신고