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,997
11년 전 조회 2,402
11년 전 조회 1,174
11년 전 조회 955
11년 전 조회 1,101
11년 전 조회 1,205
11년 전 조회 1,464
11년 전 조회 1.6만
11년 전 조회 1,577
11년 전 조회 726
11년 전 조회 760
11년 전 조회 1,018
11년 전 조회 3,290
11년 전 조회 1,118
11년 전 조회 893
11년 전 조회 931
11년 전 조회 792
11년 전 조회 964
11년 전 조회 1,726
11년 전 조회 706
11년 전 조회 1,146
11년 전 조회 1,808
11년 전 조회 660
11년 전 조회 1,523
11년 전 조회 861
11년 전 조회 999
11년 전 조회 1,459
11년 전 조회 1,754
11년 전 조회 714
11년 전 조회 1,285
11년 전 조회 631
11년 전 조회 3,786
11년 전 조회 1,195
11년 전 조회 1,451
11년 전 조회 1,284
11년 전 조회 722
11년 전 조회 850
11년 전 조회 752
11년 전 조회 5,196
11년 전 조회 686
11년 전 조회 714
11년 전 조회 3,169
11년 전 조회 1,022
11년 전 조회 4,567
11년 전 조회 1,941
11년 전 조회 2,744
11년 전 조회 694
11년 전 조회 713
11년 전 조회 1,572
11년 전 조회 758
11년 전 조회 1,722
11년 전 조회 1,689
11년 전 조회 4,595
11년 전 조회 1,097
11년 전 조회 2,250
11년 전 조회 1,522
11년 전 조회 1,582
11년 전 조회 1,640
11년 전 조회 884
11년 전 조회 1,736
11년 전 조회 586
11년 전 조회 3,886
11년 전 조회 1,979
11년 전 조회 1,779
11년 전 조회 1,430
11년 전 조회 6,941
11년 전 조회 1,394
11년 전 조회 997
11년 전 조회 2,485
11년 전 조회 1,832
11년 전 조회 937
11년 전 조회 1,345
11년 전 조회 2,717
11년 전 조회 2,097
11년 전 조회 1,922
11년 전 조회 2,212
11년 전 조회 2,498
11년 전 조회 3,278
11년 전 조회 2,843
11년 전 조회 2,939
11년 전 조회 3,643
11년 전 조회 3,413
11년 전 조회 810
11년 전 조회 4,301
11년 전 조회 5,329
11년 전 조회 1,033
11년 전 조회 2,243
11년 전 조회 1,412
11년 전 조회 754
11년 전 조회 1,153
11년 전 조회 796
11년 전 조회 2,819
11년 전 조회 1,812
11년 전 조회 807
11년 전 조회 931
11년 전 조회 1,327
11년 전 조회 969
11년 전 조회 1,032
11년 전 조회 960
11년 전 조회 943
🐛 버그신고