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,904
11년 전 조회 2,300
11년 전 조회 1,064
11년 전 조회 853
11년 전 조회 994
11년 전 조회 1,100
11년 전 조회 1,355
11년 전 조회 1.5만
11년 전 조회 1,462
11년 전 조회 613
11년 전 조회 648
11년 전 조회 917
11년 전 조회 3,186
11년 전 조회 1,005
11년 전 조회 780
11년 전 조회 826
11년 전 조회 677
11년 전 조회 857
11년 전 조회 1,610
11년 전 조회 597
11년 전 조회 1,033
11년 전 조회 1,705
11년 전 조회 548
11년 전 조회 1,427
11년 전 조회 753
11년 전 조회 895
11년 전 조회 1,351
11년 전 조회 1,636
11년 전 조회 610
11년 전 조회 1,177
11년 전 조회 532
11년 전 조회 3,674
11년 전 조회 1,093
11년 전 조회 1,343
11년 전 조회 1,169
11년 전 조회 616
11년 전 조회 752
11년 전 조회 644
11년 전 조회 5,088
11년 전 조회 586
11년 전 조회 609
11년 전 조회 3,061
11년 전 조회 912
11년 전 조회 4,457
11년 전 조회 1,828
11년 전 조회 2,646
11년 전 조회 577
11년 전 조회 597
11년 전 조회 1,466
11년 전 조회 651
11년 전 조회 1,616
11년 전 조회 1,593
11년 전 조회 4,481
11년 전 조회 990
11년 전 조회 2,147
11년 전 조회 1,428
11년 전 조회 1,461
11년 전 조회 1,535
11년 전 조회 774
11년 전 조회 1,628
11년 전 조회 491
11년 전 조회 3,776
11년 전 조회 1,870
11년 전 조회 1,674
11년 전 조회 1,318
11년 전 조회 6,834
11년 전 조회 1,284
11년 전 조회 882
11년 전 조회 2,380
11년 전 조회 1,718
11년 전 조회 839
11년 전 조회 1,235
11년 전 조회 2,616
11년 전 조회 1,985
11년 전 조회 1,819
11년 전 조회 2,109
11년 전 조회 2,384
11년 전 조회 3,157
11년 전 조회 2,723
11년 전 조회 2,821
11년 전 조회 3,535
11년 전 조회 3,292
11년 전 조회 701
11년 전 조회 4,189
11년 전 조회 5,196
11년 전 조회 918
11년 전 조회 2,129
11년 전 조회 1,303
11년 전 조회 644
11년 전 조회 1,037
11년 전 조회 693
11년 전 조회 2,700
11년 전 조회 1,681
11년 전 조회 686
11년 전 조회 822
11년 전 조회 1,216
11년 전 조회 853
11년 전 조회 923
11년 전 조회 850
11년 전 조회 837
🐛 버그신고