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,986
11년 전 조회 2,388
11년 전 조회 1,154
11년 전 조회 939
11년 전 조회 1,089
11년 전 조회 1,190
11년 전 조회 1,443
11년 전 조회 1.6만
11년 전 조회 1,557
11년 전 조회 707
11년 전 조회 738
11년 전 조회 1,007
11년 전 조회 3,278
11년 전 조회 1,097
11년 전 조회 881
11년 전 조회 920
11년 전 조회 771
11년 전 조회 950
11년 전 조회 1,715
11년 전 조회 686
11년 전 조회 1,126
11년 전 조회 1,796
11년 전 조회 639
11년 전 조회 1,515
11년 전 조회 846
11년 전 조회 986
11년 전 조회 1,439
11년 전 조회 1,737
11년 전 조회 704
11년 전 조회 1,272
11년 전 조회 618
11년 전 조회 3,773
11년 전 조회 1,177
11년 전 조회 1,435
11년 전 조회 1,269
11년 전 조회 711
11년 전 조회 838
11년 전 조회 732
11년 전 조회 5,176
11년 전 조회 673
11년 전 조회 695
11년 전 조회 3,147
11년 전 조회 1,007
11년 전 조회 4,551
11년 전 조회 1,932
11년 전 조회 2,729
11년 전 조회 681
11년 전 조회 697
11년 전 조회 1,553
11년 전 조회 741
11년 전 조회 1,700
11년 전 조회 1,676
11년 전 조회 4,580
11년 전 조회 1,087
11년 전 조회 2,234
11년 전 조회 1,508
11년 전 조회 1,562
11년 전 조회 1,629
11년 전 조회 872
11년 전 조회 1,722
11년 전 조회 577
11년 전 조회 3,865
11년 전 조회 1,962
11년 전 조회 1,766
11년 전 조회 1,412
11년 전 조회 6,924
11년 전 조회 1,383
11년 전 조회 980
11년 전 조회 2,473
11년 전 조회 1,815
11년 전 조회 923
11년 전 조회 1,329
11년 전 조회 2,702
11년 전 조회 2,087
11년 전 조회 1,914
11년 전 조회 2,191
11년 전 조회 2,482
11년 전 조회 3,262
11년 전 조회 2,828
11년 전 조회 2,915
11년 전 조회 3,621
11년 전 조회 3,394
11년 전 조회 789
11년 전 조회 4,285
11년 전 조회 5,312
11년 전 조회 1,014
11년 전 조회 2,230
11년 전 조회 1,395
11년 전 조회 739
11년 전 조회 1,140
11년 전 조회 785
11년 전 조회 2,801
11년 전 조회 1,790
11년 전 조회 791
11년 전 조회 919
11년 전 조회 1,310
11년 전 조회 949
11년 전 조회 1,021
11년 전 조회 947
11년 전 조회 928
🐛 버그신고