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,855
11년 전 조회 2,252
11년 전 조회 1,018
11년 전 조회 809
11년 전 조회 940
11년 전 조회 1,048
11년 전 조회 1,305
11년 전 조회 1.5만
11년 전 조회 1,412
11년 전 조회 564
11년 전 조회 598
11년 전 조회 869
11년 전 조회 3,133
11년 전 조회 960
11년 전 조회 734
11년 전 조회 778
11년 전 조회 634
11년 전 조회 817
11년 전 조회 1,569
11년 전 조회 551
11년 전 조회 990
11년 전 조회 1,661
11년 전 조회 509
11년 전 조회 1,380
11년 전 조회 707
11년 전 조회 852
11년 전 조회 1,302
11년 전 조회 1,589
11년 전 조회 566
11년 전 조회 1,139
11년 전 조회 484
11년 전 조회 3,630
11년 전 조회 1,059
11년 전 조회 1,303
11년 전 조회 1,125
11년 전 조회 577
11년 전 조회 709
11년 전 조회 597
11년 전 조회 5,047
11년 전 조회 545
11년 전 조회 564
11년 전 조회 3,017
11년 전 조회 869
11년 전 조회 4,408
11년 전 조회 1,790
11년 전 조회 2,602
11년 전 조회 537
11년 전 조회 557
11년 전 조회 1,428
11년 전 조회 614
11년 전 조회 1,581
11년 전 조회 1,567
11년 전 조회 4,439
11년 전 조회 945
11년 전 조회 2,110
11년 전 조회 1,388
11년 전 조회 1,425
11년 전 조회 1,506
11년 전 조회 729
11년 전 조회 1,596
11년 전 조회 443
11년 전 조회 3,733
11년 전 조회 1,829
11년 전 조회 1,633
11년 전 조회 1,278
11년 전 조회 6,794
11년 전 조회 1,245
11년 전 조회 843
11년 전 조회 2,352
11년 전 조회 1,677
11년 전 조회 803
11년 전 조회 1,195
11년 전 조회 2,581
11년 전 조회 1,941
11년 전 조회 1,773
11년 전 조회 2,073
11년 전 조회 2,342
11년 전 조회 3,121
11년 전 조회 2,686
11년 전 조회 2,787
11년 전 조회 3,492
11년 전 조회 3,252
11년 전 조회 671
11년 전 조회 4,155
11년 전 조회 5,162
11년 전 조회 881
11년 전 조회 2,091
11년 전 조회 1,267
11년 전 조회 606
11년 전 조회 1,001
11년 전 조회 658
11년 전 조회 2,665
11년 전 조회 1,644
11년 전 조회 657
11년 전 조회 788
11년 전 조회 1,186
11년 전 조회 819
11년 전 조회 899
11년 전 조회 816
11년 전 조회 794
🐛 버그신고