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,869
11년 전 조회 2,275
11년 전 조회 1,040
11년 전 조회 830
11년 전 조회 960
11년 전 조회 1,073
11년 전 조회 1,326
11년 전 조회 1.5만
11년 전 조회 1,435
11년 전 조회 587
11년 전 조회 621
11년 전 조회 885
11년 전 조회 3,155
11년 전 조회 984
11년 전 조회 755
11년 전 조회 799
11년 전 조회 656
11년 전 조회 836
11년 전 조회 1,589
11년 전 조회 573
11년 전 조회 1,013
11년 전 조회 1,682
11년 전 조회 531
11년 전 조회 1,403
11년 전 조회 729
11년 전 조회 874
11년 전 조회 1,326
11년 전 조회 1,612
11년 전 조회 589
11년 전 조회 1,164
11년 전 조회 506
11년 전 조회 3,653
11년 전 조회 1,079
11년 전 조회 1,323
11년 전 조회 1,148
11년 전 조회 589
11년 전 조회 728
11년 전 조회 621
11년 전 조회 5,068
11년 전 조회 570
11년 전 조회 579
11년 전 조회 3,031
11년 전 조회 892
11년 전 조회 4,430
11년 전 조회 1,812
11년 전 조회 2,621
11년 전 조회 559
11년 전 조회 578
11년 전 조회 1,439
11년 전 조회 624
11년 전 조회 1,595
11년 전 조회 1,577
11년 전 조회 4,458
11년 전 조회 965
11년 전 조회 2,123
11년 전 조회 1,400
11년 전 조회 1,437
11년 전 조회 1,517
11년 전 조회 750
11년 전 조회 1,607
11년 전 조회 465
11년 전 조회 3,755
11년 전 조회 1,848
11년 전 조회 1,648
11년 전 조회 1,300
11년 전 조회 6,815
11년 전 조회 1,266
11년 전 조회 865
11년 전 조회 2,361
11년 전 조회 1,698
11년 전 조회 820
11년 전 조회 1,215
11년 전 조회 2,596
11년 전 조회 1,965
11년 전 조회 1,800
11년 전 조회 2,093
11년 전 조회 2,361
11년 전 조회 3,142
11년 전 조회 2,707
11년 전 조회 2,805
11년 전 조회 3,512
11년 전 조회 3,273
11년 전 조회 682
11년 전 조회 4,173
11년 전 조회 5,180
11년 전 조회 901
11년 전 조회 2,111
11년 전 조회 1,285
11년 전 조회 625
11년 전 조회 1,018
11년 전 조회 676
11년 전 조회 2,682
11년 전 조회 1,665
11년 전 조회 675
11년 전 조회 806
11년 전 조회 1,203
11년 전 조회 839
11년 전 조회 907
11년 전 조회 836
11년 전 조회 818
🐛 버그신고