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년 전 조회 4,191
11년 전 조회 2,592
11년 전 조회 1,366
11년 전 조회 1,165
11년 전 조회 1,310
11년 전 조회 1,413
11년 전 조회 1,672
11년 전 조회 1.6만
11년 전 조회 1,770
11년 전 조회 923
11년 전 조회 955
11년 전 조회 1,204
11년 전 조회 3,485
11년 전 조회 1,316
11년 전 조회 1,095
11년 전 조회 1,141
11년 전 조회 980
11년 전 조회 1,146
11년 전 조회 1,927
11년 전 조회 916
11년 전 조회 1,340
11년 전 조회 2,016
11년 전 조회 859
11년 전 조회 1,730
11년 전 조회 1,040
11년 전 조회 1,177
11년 전 조회 1,665
11년 전 조회 1,930
11년 전 조회 907
11년 전 조회 1,476
11년 전 조회 822
11년 전 조회 3,996
11년 전 조회 1,416
11년 전 조회 1,650
11년 전 조회 1,483
11년 전 조회 907
11년 전 조회 1,039
11년 전 조회 934
11년 전 조회 5,385
11년 전 조회 888
11년 전 조회 902
11년 전 조회 3,336
11년 전 조회 1,209
11년 전 조회 4,737
11년 전 조회 2,123
11년 전 조회 2,927
11년 전 조회 876
11년 전 조회 909
11년 전 조회 1,741
11년 전 조회 919
11년 전 조회 1,889
11년 전 조회 1,847
11년 전 조회 4,796
11년 전 조회 1,277
11년 전 조회 2,421
11년 전 조회 1,697
11년 전 조회 1,738
11년 전 조회 1,815
11년 전 조회 1,081
11년 전 조회 1,905
11년 전 조회 779
11년 전 조회 4,066
11년 전 조회 2,155
11년 전 조회 1,957
11년 전 조회 1,609
11년 전 조회 7,114
11년 전 조회 1,594
11년 전 조회 1,181
11년 전 조회 2,654
11년 전 조회 2,019
11년 전 조회 1,120
11년 전 조회 1,545
11년 전 조회 2,884
11년 전 조회 2,299
11년 전 조회 2,115
11년 전 조회 2,396
11년 전 조회 2,676
11년 전 조회 3,467
11년 전 조회 3,029
11년 전 조회 3,099
11년 전 조회 3,812
11년 전 조회 3,602
11년 전 조회 977
11년 전 조회 4,482
11년 전 조회 5,514
11년 전 조회 1,198
11년 전 조회 2,418
11년 전 조회 1,574
11년 전 조회 944
11년 전 조회 1,315
11년 전 조회 980
11년 전 조회 3,006
11년 전 조회 1,996
11년 전 조회 977
11년 전 조회 1,121
11년 전 조회 1,498
11년 전 조회 1,150
11년 전 조회 1,191
11년 전 조회 1,144
11년 전 조회 1,131