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,876
11년 전 조회 2,280
11년 전 조회 1,046
11년 전 조회 837
11년 전 조회 969
11년 전 조회 1,079
11년 전 조회 1,334
11년 전 조회 1.5만
11년 전 조회 1,443
11년 전 조회 597
11년 전 조회 626
11년 전 조회 893
11년 전 조회 3,161
11년 전 조회 989
11년 전 조회 763
11년 전 조회 805
11년 전 조회 662
11년 전 조회 840
11년 전 조회 1,595
11년 전 조회 577
11년 전 조회 1,018
11년 전 조회 1,690
11년 전 조회 535
11년 전 조회 1,411
11년 전 조회 733
11년 전 조회 880
11년 전 조회 1,331
11년 전 조회 1,618
11년 전 조회 595
11년 전 조회 1,168
11년 전 조회 511
11년 전 조회 3,659
11년 전 조회 1,083
11년 전 조회 1,328
11년 전 조회 1,154
11년 전 조회 596
11년 전 조회 734
11년 전 조회 625
11년 전 조회 5,073
11년 전 조회 574
11년 전 조회 585
11년 전 조회 3,040
11년 전 조회 895
11년 전 조회 4,433
11년 전 조회 1,814
11년 전 조회 2,624
11년 전 조회 564
11년 전 조회 582
11년 전 조회 1,447
11년 전 조회 634
11년 전 조회 1,603
11년 전 조회 1,580
11년 전 조회 4,468
11년 전 조회 968
11년 전 조회 2,132
11년 전 조회 1,407
11년 전 조회 1,445
11년 전 조회 1,522
11년 전 조회 753
11년 전 조회 1,615
11년 전 조회 471
11년 전 조회 3,758
11년 전 조회 1,852
11년 전 조회 1,654
11년 전 조회 1,305
11년 전 조회 6,822
11년 전 조회 1,271
11년 전 조회 869
11년 전 조회 2,364
11년 전 조회 1,704
11년 전 조회 825
11년 전 조회 1,219
11년 전 조회 2,602
11년 전 조회 1,972
11년 전 조회 1,803
11년 전 조회 2,096
11년 전 조회 2,367
11년 전 조회 3,150
11년 전 조회 2,713
11년 전 조회 2,810
11년 전 조회 3,516
11년 전 조회 3,277
11년 전 조회 685
11년 전 조회 4,179
11년 전 조회 5,186
11년 전 조회 903
11년 전 조회 2,117
11년 전 조회 1,292
11년 전 조회 631
11년 전 조회 1,021
11년 전 조회 678
11년 전 조회 2,687
11년 전 조회 1,670
11년 전 조회 679
11년 전 조회 809
11년 전 조회 1,208
11년 전 조회 845
11년 전 조회 909
11년 전 조회 841
11년 전 조회 824
🐛 버그신고