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,857
11년 전 조회 2,254
11년 전 조회 1,021
11년 전 조회 811
11년 전 조회 946
11년 전 조회 1,054
11년 전 조회 1,309
11년 전 조회 1.5만
11년 전 조회 1,416
11년 전 조회 566
11년 전 조회 600
11년 전 조회 870
11년 전 조회 3,135
11년 전 조회 962
11년 전 조회 734
11년 전 조회 782
11년 전 조회 637
11년 전 조회 818
11년 전 조회 1,574
11년 전 조회 554
11년 전 조회 992
11년 전 조회 1,664
11년 전 조회 512
11년 전 조회 1,385
11년 전 조회 712
11년 전 조회 856
11년 전 조회 1,308
11년 전 조회 1,593
11년 전 조회 569
11년 전 조회 1,143
11년 전 조회 486
11년 전 조회 3,634
11년 전 조회 1,063
11년 전 조회 1,307
11년 전 조회 1,128
11년 전 조회 579
11년 전 조회 712
11년 전 조회 603
11년 전 조회 5,049
11년 전 조회 550
11년 전 조회 565
11년 전 조회 3,018
11년 전 조회 872
11년 전 조회 4,410
11년 전 조회 1,792
11년 전 조회 2,603
11년 전 조회 540
11년 전 조회 560
11년 전 조회 1,431
11년 전 조회 616
11년 전 조회 1,583
11년 전 조회 1,569
11년 전 조회 4,443
11년 전 조회 948
11년 전 조회 2,112
11년 전 조회 1,389
11년 전 조회 1,427
11년 전 조회 1,508
11년 전 조회 733
11년 전 조회 1,598
11년 전 조회 448
11년 전 조회 3,734
11년 전 조회 1,830
11년 전 조회 1,633
11년 전 조회 1,280
11년 전 조회 6,796
11년 전 조회 1,248
11년 전 조회 845
11년 전 조회 2,354
11년 전 조회 1,681
11년 전 조회 804
11년 전 조회 1,197
11년 전 조회 2,581
11년 전 조회 1,944
11년 전 조회 1,775
11년 전 조회 2,075
11년 전 조회 2,343
11년 전 조회 3,124
11년 전 조회 2,688
11년 전 조회 2,787
11년 전 조회 3,494
11년 전 조회 3,255
11년 전 조회 675
11년 전 조회 4,156
11년 전 조회 5,165
11년 전 조회 882
11년 전 조회 2,092
11년 전 조회 1,269
11년 전 조회 608
11년 전 조회 1,002
11년 전 조회 660
11년 전 조회 2,669
11년 전 조회 1,648
11년 전 조회 658
11년 전 조회 790
11년 전 조회 1,187
11년 전 조회 821
11년 전 조회 900
11년 전 조회 821
11년 전 조회 799
🐛 버그신고