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,941
11년 전 조회 2,338
11년 전 조회 1,106
11년 전 조회 888
11년 전 조회 1,035
11년 전 조회 1,144
11년 전 조회 1,403
11년 전 조회 1.6만
11년 전 조회 1,498
11년 전 조회 662
11년 전 조회 684
11년 전 조회 960
11년 전 조회 3,231
11년 전 조회 1,045
11년 전 조회 813
11년 전 조회 861
11년 전 조회 718
11년 전 조회 895
11년 전 조회 1,658
11년 전 조회 632
11년 전 조회 1,077
11년 전 조회 1,741
11년 전 조회 589
11년 전 조회 1,459
11년 전 조회 794
11년 전 조회 929
11년 전 조회 1,390
11년 전 조회 1,674
11년 전 조회 652
11년 전 조회 1,217
11년 전 조회 565
11년 전 조회 3,722
11년 전 조회 1,134
11년 전 조회 1,378
11년 전 조회 1,220
11년 전 조회 660
11년 전 조회 794
11년 전 조회 687
11년 전 조회 5,132
11년 전 조회 621
11년 전 조회 645
11년 전 조회 3,104
11년 전 조회 953
11년 전 조회 4,490
11년 전 조회 1,879
11년 전 조회 2,685
11년 전 조회 623
11년 전 조회 636
11년 전 조회 1,502
11년 전 조회 680
11년 전 조회 1,657
11년 전 조회 1,631
11년 전 조회 4,526
11년 전 조회 1,033
11년 전 조회 2,181
11년 전 조회 1,470
11년 전 조회 1,510
11년 전 조회 1,574
11년 전 조회 811
11년 전 조회 1,673
11년 전 조회 526
11년 전 조회 3,815
11년 전 조회 1,907
11년 전 조회 1,712
11년 전 조회 1,361
11년 전 조회 6,866
11년 전 조회 1,327
11년 전 조회 928
11년 전 조회 2,416
11년 전 조회 1,754
11년 전 조회 873
11년 전 조회 1,272
11년 전 조회 2,656
11년 전 조회 2,031
11년 전 조회 1,850
11년 전 조회 2,144
11년 전 조회 2,421
11년 전 조회 3,200
11년 전 조회 2,761
11년 전 조회 2,867
11년 전 조회 3,571
11년 전 조회 3,332
11년 전 조회 734
11년 전 조회 4,242
11년 전 조회 5,252
11년 전 조회 961
11년 전 조회 2,175
11년 전 조회 1,341
11년 전 조회 686
11년 전 조회 1,074
11년 전 조회 734
11년 전 조회 2,733
11년 전 조회 1,724
11년 전 조회 735
11년 전 조회 863
11년 전 조회 1,251
11년 전 조회 889
11년 전 조회 967
11년 전 조회 882
11년 전 조회 876
🐛 버그신고