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,905
11년 전 조회 2,302
11년 전 조회 1,066
11년 전 조회 855
11년 전 조회 997
11년 전 조회 1,103
11년 전 조회 1,358
11년 전 조회 1.5만
11년 전 조회 1,462
11년 전 조회 618
11년 전 조회 653
11년 전 조회 920
11년 전 조회 3,191
11년 전 조회 1,006
11년 전 조회 781
11년 전 조회 828
11년 전 조회 678
11년 전 조회 858
11년 전 조회 1,613
11년 전 조회 598
11년 전 조회 1,035
11년 전 조회 1,708
11년 전 조회 552
11년 전 조회 1,429
11년 전 조회 756
11년 전 조회 896
11년 전 조회 1,351
11년 전 조회 1,637
11년 전 조회 611
11년 전 조회 1,177
11년 전 조회 533
11년 전 조회 3,675
11년 전 조회 1,096
11년 전 조회 1,347
11년 전 조회 1,172
11년 전 조회 618
11년 전 조회 755
11년 전 조회 647
11년 전 조회 5,091
11년 전 조회 587
11년 전 조회 615
11년 전 조회 3,066
11년 전 조회 917
11년 전 조회 4,462
11년 전 조회 1,829
11년 전 조회 2,650
11년 전 조회 578
11년 전 조회 601
11년 전 조회 1,468
11년 전 조회 656
11년 전 조회 1,617
11년 전 조회 1,595
11년 전 조회 4,482
11년 전 조회 995
11년 전 조회 2,154
11년 전 조회 1,431
11년 전 조회 1,466
11년 전 조회 1,540
11년 전 조회 778
11년 전 조회 1,629
11년 전 조회 493
11년 전 조회 3,778
11년 전 조회 1,872
11년 전 조회 1,676
11년 전 조회 1,320
11년 전 조회 6,839
11년 전 조회 1,286
11년 전 조회 886
11년 전 조회 2,382
11년 전 조회 1,721
11년 전 조회 843
11년 전 조회 1,236
11년 전 조회 2,618
11년 전 조회 1,986
11년 전 조회 1,821
11년 전 조회 2,112
11년 전 조회 2,387
11년 전 조회 3,158
11년 전 조회 2,726
11년 전 조회 2,826
11년 전 조회 3,537
11년 전 조회 3,295
11년 전 조회 703
11년 전 조회 4,198
11년 전 조회 5,199
11년 전 조회 923
11년 전 조회 2,131
11년 전 조회 1,309
11년 전 조회 646
11년 전 조회 1,038
11년 전 조회 696
11년 전 조회 2,702
11년 전 조회 1,683
11년 전 조회 688
11년 전 조회 824
11년 전 조회 1,218
11년 전 조회 856
11년 전 조회 925
11년 전 조회 854
11년 전 조회 839
🐛 버그신고