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,104
11년 전 조회 887
11년 전 조회 1,031
11년 전 조회 1,140
11년 전 조회 1,402
11년 전 조회 1.6만
11년 전 조회 1,497
11년 전 조회 659
11년 전 조회 683
11년 전 조회 959
11년 전 조회 3,229
11년 전 조회 1,044
11년 전 조회 809
11년 전 조회 860
11년 전 조회 716
11년 전 조회 894
11년 전 조회 1,656
11년 전 조회 629
11년 전 조회 1,076
11년 전 조회 1,738
11년 전 조회 586
11년 전 조회 1,458
11년 전 조회 793
11년 전 조회 926
11년 전 조회 1,389
11년 전 조회 1,672
11년 전 조회 648
11년 전 조회 1,214
11년 전 조회 564
11년 전 조회 3,720
11년 전 조회 1,132
11년 전 조회 1,376
11년 전 조회 1,217
11년 전 조회 660
11년 전 조회 794
11년 전 조회 683
11년 전 조회 5,130
11년 전 조회 620
11년 전 조회 642
11년 전 조회 3,102
11년 전 조회 951
11년 전 조회 4,489
11년 전 조회 1,876
11년 전 조회 2,683
11년 전 조회 620
11년 전 조회 635
11년 전 조회 1,500
11년 전 조회 678
11년 전 조회 1,655
11년 전 조회 1,627
11년 전 조회 4,525
11년 전 조회 1,032
11년 전 조회 2,181
11년 전 조회 1,468
11년 전 조회 1,508
11년 전 조회 1,573
11년 전 조회 809
11년 전 조회 1,671
11년 전 조회 521
11년 전 조회 3,814
11년 전 조회 1,907
11년 전 조회 1,710
11년 전 조회 1,360
11년 전 조회 6,865
11년 전 조회 1,325
11년 전 조회 927
11년 전 조회 2,411
11년 전 조회 1,754
11년 전 조회 872
11년 전 조회 1,272
11년 전 조회 2,656
11년 전 조회 2,026
11년 전 조회 1,849
11년 전 조회 2,143
11년 전 조회 2,421
11년 전 조회 3,196
11년 전 조회 2,760
11년 전 조회 2,862
11년 전 조회 3,571
11년 전 조회 3,327
11년 전 조회 733
11년 전 조회 4,240
11년 전 조회 5,252
11년 전 조회 961
11년 전 조회 2,175
11년 전 조회 1,340
11년 전 조회 683
11년 전 조회 1,073
11년 전 조회 732
11년 전 조회 2,728
11년 전 조회 1,720
11년 전 조회 735
11년 전 조회 862
11년 전 조회 1,248
11년 전 조회 888
11년 전 조회 964
11년 전 조회 879
11년 전 조회 872
🐛 버그신고