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"> </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"> </td>
      </tr>
</table>
    </td>
  </tr>
</table>

<? echo latest2("index_portfolio_140314", "portfolio_02", 16, 30);  ?>

</div>

|

댓글 1개

href="#" => href="javascript:;"
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

+
제목 글쓴이 날짜 조회
11년 전 조회 5,062
11년 전 조회 3,476
11년 전 조회 2,262
11년 전 조회 2,046
11년 전 조회 2,183
11년 전 조회 2,264
11년 전 조회 2,557
11년 전 조회 1.7만
11년 전 조회 2,660
11년 전 조회 1,776
11년 전 조회 1,800
11년 전 조회 2,095
11년 전 조회 4,401
11년 전 조회 2,154
11년 전 조회 1,933
11년 전 조회 1,975
11년 전 조회 1,855
11년 전 조회 2,034
11년 전 조회 2,828
11년 전 조회 1,775
11년 전 조회 2,191
11년 전 조회 2,863
11년 전 조회 1,725
11년 전 조회 2,582
11년 전 조회 1,931
11년 전 조회 2,066
11년 전 조회 2,535
11년 전 조회 2,810
11년 전 조회 1,763
11년 전 조회 2,328
11년 전 조회 1,702
11년 전 조회 4,877
11년 전 조회 2,276
11년 전 조회 2,546
11년 전 조회 2,309
11년 전 조회 1,754
11년 전 조회 1,888
11년 전 조회 1,772
11년 전 조회 6,272
11년 전 조회 1,755
11년 전 조회 1,754
11년 전 조회 4,191
11년 전 조회 2,048
11년 전 조회 5,603
11년 전 조회 2,977
11년 전 조회 3,804
11년 전 조회 1,735
11년 전 조회 1,756
11년 전 조회 2,608
11년 전 조회 1,803
11년 전 조회 2,750
11년 전 조회 2,686
11년 전 조회 5,600
11년 전 조회 2,091
11년 전 조회 3,219
11년 전 조회 2,491
11년 전 조회 2,556
11년 전 조회 2,638
11년 전 조회 1,873
11년 전 조회 2,709
11년 전 조회 1,564
11년 전 조회 4,888
11년 전 조회 2,934
11년 전 조회 2,771
11년 전 조회 2,402
11년 전 조회 7,897
11년 전 조회 2,345
11년 전 조회 1,970
11년 전 조회 3,421
11년 전 조회 2,793
11년 전 조회 1,892
11년 전 조회 2,321
11년 전 조회 3,634
11년 전 조회 3,038
11년 전 조회 2,861
11년 전 조회 3,169
11년 전 조회 3,436
11년 전 조회 4,201
11년 전 조회 3,798
11년 전 조회 3,844
11년 전 조회 4,549
11년 전 조회 4,331
11년 전 조회 1,733
11년 전 조회 5,222
11년 전 조회 6,286
11년 전 조회 1,953
12년 전 조회 3,205
12년 전 조회 2,356
12년 전 조회 1,742
12년 전 조회 2,090
12년 전 조회 1,760
12년 전 조회 3,739
12년 전 조회 2,722
12년 전 조회 1,728
12년 전 조회 1,861
12년 전 조회 2,199
12년 전 조회 1,874
12년 전 조회 1,921
12년 전 조회 1,854
12년 전 조회 1,808