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년 전 조회 4,029
11년 전 조회 2,438
11년 전 조회 1,204
11년 전 조회 1,004
11년 전 조회 1,140
11년 전 조회 1,234
11년 전 조회 1,497
11년 전 조회 1.6만
11년 전 조회 1,616
11년 전 조회 756
11년 전 조회 790
11년 전 조회 1,055
11년 전 조회 3,329
11년 전 조회 1,157
11년 전 조회 929
11년 전 조회 976
11년 전 조회 832
11년 전 조회 998
11년 전 조회 1,766
11년 전 조회 744
11년 전 조회 1,183
11년 전 조회 1,850
11년 전 조회 704
11년 전 조회 1,569
11년 전 조회 888
11년 전 조회 1,032
11년 전 조회 1,498
11년 전 조회 1,791
11년 전 조회 757
11년 전 조회 1,333
11년 전 조회 680
11년 전 조회 3,830
11년 전 조회 1,243
11년 전 조회 1,487
11년 전 조회 1,321
11년 전 조회 759
11년 전 조회 889
11년 전 조회 784
11년 전 조회 5,236
11년 전 조회 734
11년 전 조회 748
11년 전 조회 3,199
11년 전 조회 1,058
11년 전 조회 4,596
11년 전 조회 1,977
11년 전 조회 2,772
11년 전 조회 734
11년 전 조회 752
11년 전 조회 1,606
11년 전 조회 789
11년 전 조회 1,752
11년 전 조회 1,715
11년 전 조회 4,637
11년 전 조회 1,129
11년 전 조회 2,286
11년 전 조회 1,554
11년 전 조회 1,601
11년 전 조회 1,670
11년 전 조회 922
11년 전 조회 1,769
11년 전 조회 629
11년 전 조회 3,927
11년 전 조회 2,005
11년 전 조회 1,809
11년 전 조회 1,476
11년 전 조회 6,972
11년 전 조회 1,435
11년 전 조회 1,029
11년 전 조회 2,512
11년 전 조회 1,873
11년 전 조회 978
11년 전 조회 1,392
11년 전 조회 2,745
11년 전 조회 2,142
11년 전 조회 1,969
11년 전 조회 2,248
11년 전 조회 2,533
11년 전 조회 3,317
11년 전 조회 2,871
11년 전 조회 2,966
11년 전 조회 3,679
11년 전 조회 3,448
11년 전 조회 840
11년 전 조회 4,334
11년 전 조회 5,368
11년 전 조회 1,062
11년 전 조회 2,281
11년 전 조회 1,448
11년 전 조회 797
11년 전 조회 1,189
11년 전 조회 832
11년 전 조회 2,861
11년 전 조회 1,846
11년 전 조회 840
11년 전 조회 975
11년 전 조회 1,358
11년 전 조회 1,006
11년 전 조회 1,066
11년 전 조회 1,003
11년 전 조회 984
🐛 버그신고