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,860
11년 전 조회 2,261
11년 전 조회 1,031
11년 전 조회 820
11년 전 조회 954
11년 전 조회 1,063
11년 전 조회 1,317
11년 전 조회 1.5만
11년 전 조회 1,424
11년 전 조회 580
11년 전 조회 607
11년 전 조회 873
11년 전 조회 3,142
11년 전 조회 971
11년 전 조회 744
11년 전 조회 788
11년 전 조회 645
11년 전 조회 823
11년 전 조회 1,581
11년 전 조회 562
11년 전 조회 1,004
11년 전 조회 1,675
11년 전 조회 523
11년 전 조회 1,394
11년 전 조회 718
11년 전 조회 864
11년 전 조회 1,314
11년 전 조회 1,602
11년 전 조회 577
11년 전 조회 1,152
11년 전 조회 494
11년 전 조회 3,641
11년 전 조회 1,070
11년 전 조회 1,316
11년 전 조회 1,138
11년 전 조회 581
11년 전 조회 717
11년 전 조회 610
11년 전 조회 5,056
11년 전 조회 556
11년 전 조회 567
11년 전 조회 3,021
11년 전 조회 879
11년 전 조회 4,420
11년 전 조회 1,802
11년 전 조회 2,608
11년 전 조회 548
11년 전 조회 567
11년 전 조회 1,432
11년 전 조회 619
11년 전 조회 1,585
11년 전 조회 1,573
11년 전 조회 4,451
11년 전 조회 954
11년 전 조회 2,115
11년 전 조회 1,393
11년 전 조회 1,431
11년 전 조회 1,512
11년 전 조회 739
11년 전 조회 1,599
11년 전 조회 458
11년 전 조회 3,744
11년 전 조회 1,833
11년 전 조회 1,637
11년 전 조회 1,288
11년 전 조회 6,804
11년 전 조회 1,255
11년 전 조회 856
11년 전 조회 2,355
11년 전 조회 1,690
11년 전 조회 809
11년 전 조회 1,205
11년 전 조회 2,586
11년 전 조회 1,957
11년 전 조회 1,787
11년 전 조회 2,086
11년 전 조회 2,351
11년 전 조회 3,132
11년 전 조회 2,695
11년 전 조회 2,790
11년 전 조회 3,499
11년 전 조회 3,265
11년 전 조회 676
11년 전 조회 4,161
11년 전 조회 5,172
11년 전 조회 887
11년 전 조회 2,098
11년 전 조회 1,275
11년 전 조회 616
11년 전 조회 1,006
11년 전 조회 663
11년 전 조회 2,676
11년 전 조회 1,657
11년 전 조회 664
11년 전 조회 794
11년 전 조회 1,191
11년 전 조회 829
11년 전 조회 902
11년 전 조회 826
11년 전 조회 807
🐛 버그신고