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,981
11년 전 조회 2,379
11년 전 조회 1,146
11년 전 조회 933
11년 전 조회 1,080
11년 전 조회 1,184
11년 전 조회 1,437
11년 전 조회 1.6만
11년 전 조회 1,545
11년 전 조회 697
11년 전 조회 732
11년 전 조회 997
11년 전 조회 3,275
11년 전 조회 1,092
11년 전 조회 871
11년 전 조회 907
11년 전 조회 763
11년 전 조회 936
11년 전 조회 1,706
11년 전 조회 680
11년 전 조회 1,122
11년 전 조회 1,792
11년 전 조회 631
11년 전 조회 1,513
11년 전 조회 841
11년 전 조회 978
11년 전 조회 1,433
11년 전 조회 1,734
11년 전 조회 689
11년 전 조회 1,262
11년 전 조회 605
11년 전 조회 3,762
11년 전 조회 1,172
11년 전 조회 1,427
11년 전 조회 1,262
11년 전 조회 700
11년 전 조회 834
11년 전 조회 728
11년 전 조회 5,172
11년 전 조회 668
11년 전 조회 686
11년 전 조회 3,143
11년 전 조회 1,005
11년 전 조회 4,542
11년 전 조회 1,922
11년 전 조회 2,724
11년 전 조회 674
11년 전 조회 684
11년 전 조회 1,548
11년 전 조회 734
11년 전 조회 1,691
11년 전 조회 1,669
11년 전 조회 4,574
11년 전 조회 1,080
11년 전 조회 2,226
11년 전 조회 1,500
11년 전 조회 1,557
11년 전 조회 1,624
11년 전 조회 862
11년 전 조회 1,717
11년 전 조회 565
11년 전 조회 3,861
11년 전 조회 1,957
11년 전 조회 1,761
11년 전 조회 1,406
11년 전 조회 6,920
11년 전 조회 1,373
11년 전 조회 976
11년 전 조회 2,468
11년 전 조회 1,809
11년 전 조회 916
11년 전 조회 1,324
11년 전 조회 2,698
11년 전 조회 2,080
11년 전 조회 1,904
11년 전 조회 2,184
11년 전 조회 2,475
11년 전 조회 3,251
11년 전 조회 2,816
11년 전 조회 2,909
11년 전 조회 3,617
11년 전 조회 3,387
11년 전 조회 776
11년 전 조회 4,278
11년 전 조회 5,306
11년 전 조회 1,003
11년 전 조회 2,220
11년 전 조회 1,385
11년 전 조회 730
11년 전 조회 1,129
11년 전 조회 779
11년 전 조회 2,794
11년 전 조회 1,784
11년 전 조회 784
11년 전 조회 910
11년 전 조회 1,301
11년 전 조회 938
11년 전 조회 1,013
11년 전 조회 942
11년 전 조회 922
🐛 버그신고