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,875
11년 전 조회 2,280
11년 전 조회 1,046
11년 전 조회 836
11년 전 조회 969
11년 전 조회 1,079
11년 전 조회 1,333
11년 전 조회 1.5만
11년 전 조회 1,442
11년 전 조회 597
11년 전 조회 626
11년 전 조회 892
11년 전 조회 3,161
11년 전 조회 989
11년 전 조회 763
11년 전 조회 804
11년 전 조회 661
11년 전 조회 839
11년 전 조회 1,595
11년 전 조회 577
11년 전 조회 1,018
11년 전 조회 1,690
11년 전 조회 535
11년 전 조회 1,410
11년 전 조회 732
11년 전 조회 878
11년 전 조회 1,330
11년 전 조회 1,618
11년 전 조회 595
11년 전 조회 1,168
11년 전 조회 510
11년 전 조회 3,658
11년 전 조회 1,082
11년 전 조회 1,328
11년 전 조회 1,154
11년 전 조회 596
11년 전 조회 734
11년 전 조회 625
11년 전 조회 5,073
11년 전 조회 572
11년 전 조회 585
11년 전 조회 3,040
11년 전 조회 894
11년 전 조회 4,432
11년 전 조회 1,814
11년 전 조회 2,624
11년 전 조회 563
11년 전 조회 582
11년 전 조회 1,447
11년 전 조회 633
11년 전 조회 1,603
11년 전 조회 1,580
11년 전 조회 4,467
11년 전 조회 966
11년 전 조회 2,131
11년 전 조회 1,406
11년 전 조회 1,444
11년 전 조회 1,521
11년 전 조회 752
11년 전 조회 1,614
11년 전 조회 471
11년 전 조회 3,758
11년 전 조회 1,852
11년 전 조회 1,654
11년 전 조회 1,304
11년 전 조회 6,820
11년 전 조회 1,271
11년 전 조회 869
11년 전 조회 2,364
11년 전 조회 1,703
11년 전 조회 824
11년 전 조회 1,219
11년 전 조회 2,602
11년 전 조회 1,970
11년 전 조회 1,803
11년 전 조회 2,096
11년 전 조회 2,367
11년 전 조회 3,149
11년 전 조회 2,712
11년 전 조회 2,809
11년 전 조회 3,516
11년 전 조회 3,277
11년 전 조회 685
11년 전 조회 4,178
11년 전 조회 5,186
11년 전 조회 903
11년 전 조회 2,117
11년 전 조회 1,291
11년 전 조회 630
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년 전 조회 822
🐛 버그신고