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,867
11년 전 조회 2,273
11년 전 조회 1,040
11년 전 조회 829
11년 전 조회 959
11년 전 조회 1,071
11년 전 조회 1,325
11년 전 조회 1.5만
11년 전 조회 1,433
11년 전 조회 586
11년 전 조회 620
11년 전 조회 883
11년 전 조회 3,155
11년 전 조회 983
11년 전 조회 754
11년 전 조회 798
11년 전 조회 655
11년 전 조회 834
11년 전 조회 1,588
11년 전 조회 572
11년 전 조회 1,012
11년 전 조회 1,681
11년 전 조회 531
11년 전 조회 1,402
11년 전 조회 729
11년 전 조회 873
11년 전 조회 1,326
11년 전 조회 1,611
11년 전 조회 588
11년 전 조회 1,164
11년 전 조회 506
11년 전 조회 3,651
11년 전 조회 1,079
11년 전 조회 1,323
11년 전 조회 1,147
11년 전 조회 589
11년 전 조회 727
11년 전 조회 621
11년 전 조회 5,067
11년 전 조회 567
11년 전 조회 578
11년 전 조회 3,031
11년 전 조회 892
11년 전 조회 4,430
11년 전 조회 1,812
11년 전 조회 2,620
11년 전 조회 559
11년 전 조회 578
11년 전 조회 1,439
11년 전 조회 623
11년 전 조회 1,595
11년 전 조회 1,576
11년 전 조회 4,458
11년 전 조회 965
11년 전 조회 2,123
11년 전 조회 1,399
11년 전 조회 1,437
11년 전 조회 1,516
11년 전 조회 750
11년 전 조회 1,606
11년 전 조회 463
11년 전 조회 3,755
11년 전 조회 1,848
11년 전 조회 1,647
11년 전 조회 1,298
11년 전 조회 6,814
11년 전 조회 1,265
11년 전 조회 865
11년 전 조회 2,361
11년 전 조회 1,698
11년 전 조회 820
11년 전 조회 1,215
11년 전 조회 2,596
11년 전 조회 1,965
11년 전 조회 1,798
11년 전 조회 2,093
11년 전 조회 2,361
11년 전 조회 3,141
11년 전 조회 2,706
11년 전 조회 2,802
11년 전 조회 3,512
11년 전 조회 3,273
11년 전 조회 680
11년 전 조회 4,172
11년 전 조회 5,180
11년 전 조회 900
11년 전 조회 2,111
11년 전 조회 1,284
11년 전 조회 625
11년 전 조회 1,018
11년 전 조회 676
11년 전 조회 2,682
11년 전 조회 1,665
11년 전 조회 675
11년 전 조회 806
11년 전 조회 1,203
11년 전 조회 838
11년 전 조회 906
11년 전 조회 835
11년 전 조회 817
🐛 버그신고