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,943
11년 전 조회 2,345
11년 전 조회 1,112
11년 전 조회 898
11년 전 조회 1,048
11년 전 조회 1,150
11년 전 조회 1,408
11년 전 조회 1.6만
11년 전 조회 1,504
11년 전 조회 667
11년 전 조회 694
11년 전 조회 971
11년 전 조회 3,239
11년 전 조회 1,053
11년 전 조회 827
11년 전 조회 871
11년 전 조회 727
11년 전 조회 905
11년 전 조회 1,668
11년 전 조회 639
11년 전 조회 1,089
11년 전 조회 1,748
11년 전 조회 593
11년 전 조회 1,466
11년 전 조회 804
11년 전 조회 938
11년 전 조회 1,394
11년 전 조회 1,690
11년 전 조회 655
11년 전 조회 1,225
11년 전 조회 571
11년 전 조회 3,726
11년 전 조회 1,141
11년 전 조회 1,386
11년 전 조회 1,225
11년 전 조회 666
11년 전 조회 800
11년 전 조회 694
11년 전 조회 5,140
11년 전 조회 631
11년 전 조회 656
11년 전 조회 3,111
11년 전 조회 959
11년 전 조회 4,499
11년 전 조회 1,890
11년 전 조회 2,687
11년 전 조회 633
11년 전 조회 653
11년 전 조회 1,510
11년 전 조회 691
11년 전 조회 1,661
11년 전 조회 1,643
11년 전 조회 4,533
11년 전 조회 1,040
11년 전 조회 2,190
11년 전 조회 1,478
11년 전 조회 1,517
11년 전 조회 1,585
11년 전 조회 820
11년 전 조회 1,683
11년 전 조회 535
11년 전 조회 3,825
11년 전 조회 1,918
11년 전 조회 1,716
11년 전 조회 1,368
11년 전 조회 6,880
11년 전 조회 1,338
11년 전 조회 940
11년 전 조회 2,426
11년 전 조회 1,764
11년 전 조회 879
11년 전 조회 1,281
11년 전 조회 2,660
11년 전 조회 2,038
11년 전 조회 1,859
11년 전 조회 2,152
11년 전 조회 2,427
11년 전 조회 3,211
11년 전 조회 2,773
11년 전 조회 2,876
11년 전 조회 3,574
11년 전 조회 3,344
11년 전 조회 738
11년 전 조회 4,250
11년 전 조회 5,263
11년 전 조회 968
11년 전 조회 2,184
11년 전 조회 1,349
11년 전 조회 694
11년 전 조회 1,086
11년 전 조회 739
11년 전 조회 2,743
11년 전 조회 1,735
11년 전 조회 743
11년 전 조회 870
11년 전 조회 1,259
11년 전 조회 892
11년 전 조회 973
11년 전 조회 895
11년 전 조회 884
🐛 버그신고