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,949
11년 전 조회 2,353
11년 전 조회 1,125
11년 전 조회 906
11년 전 조회 1,053
11년 전 조회 1,161
11년 전 조회 1,414
11년 전 조회 1.6만
11년 전 조회 1,517
11년 전 조회 679
11년 전 조회 707
11년 전 조회 977
11년 전 조회 3,251
11년 전 조회 1,062
11년 전 조회 838
11년 전 조회 879
11년 전 조회 735
11년 전 조회 912
11년 전 조회 1,682
11년 전 조회 648
11년 전 조회 1,098
11년 전 조회 1,756
11년 전 조회 605
11년 전 조회 1,482
11년 전 조회 810
11년 전 조회 948
11년 전 조회 1,408
11년 전 조회 1,702
11년 전 조회 665
11년 전 조회 1,232
11년 전 조회 583
11년 전 조회 3,737
11년 전 조회 1,152
11년 전 조회 1,397
11년 전 조회 1,234
11년 전 조회 674
11년 전 조회 808
11년 전 조회 703
11년 전 조회 5,149
11년 전 조회 644
11년 전 조회 667
11년 전 조회 3,121
11년 전 조회 967
11년 전 조회 4,513
11년 전 조회 1,904
11년 전 조회 2,697
11년 전 조회 643
11년 전 조회 661
11년 전 조회 1,524
11년 전 조회 700
11년 전 조회 1,672
11년 전 조회 1,649
11년 전 조회 4,540
11년 전 조회 1,054
11년 전 조회 2,197
11년 전 조회 1,487
11년 전 조회 1,531
11년 전 조회 1,591
11년 전 조회 830
11년 전 조회 1,693
11년 전 조회 542
11년 전 조회 3,835
11년 전 조회 1,935
11년 전 조회 1,725
11년 전 조회 1,379
11년 전 조회 6,895
11년 전 조회 1,340
11년 전 조회 950
11년 전 조회 2,440
11년 전 조회 1,779
11년 전 조회 889
11년 전 조회 1,297
11년 전 조회 2,670
11년 전 조회 2,051
11년 전 조회 1,875
11년 전 조회 2,163
11년 전 조회 2,436
11년 전 조회 3,225
11년 전 조회 2,786
11년 전 조회 2,877
11년 전 조회 3,585
11년 전 조회 3,355
11년 전 조회 751
11년 전 조회 4,258
11년 전 조회 5,275
11년 전 조회 983
11년 전 조회 2,194
11년 전 조회 1,359
11년 전 조회 703
11년 전 조회 1,095
11년 전 조회 750
11년 전 조회 2,756
11년 전 조회 1,743
11년 전 조회 754
11년 전 조회 880
11년 전 조회 1,272
11년 전 조회 908
11년 전 조회 985
11년 전 조회 904
11년 전 조회 893
🐛 버그신고