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,992
11년 전 조회 2,396
11년 전 조회 1,166
11년 전 조회 943
11년 전 조회 1,095
11년 전 조회 1,195
11년 전 조회 1,453
11년 전 조회 1.6만
11년 전 조회 1,568
11년 전 조회 720
11년 전 조회 744
11년 전 조회 1,012
11년 전 조회 3,283
11년 전 조회 1,103
11년 전 조회 884
11년 전 조회 925
11년 전 조회 778
11년 전 조회 957
11년 전 조회 1,723
11년 전 조회 691
11년 전 조회 1,133
11년 전 조회 1,803
11년 전 조회 646
11년 전 조회 1,517
11년 전 조회 850
11년 전 조회 993
11년 전 조회 1,449
11년 전 조회 1,741
11년 전 조회 707
11년 전 조회 1,278
11년 전 조회 626
11년 전 조회 3,779
11년 전 조회 1,185
11년 전 조회 1,443
11년 전 조회 1,277
11년 전 조회 716
11년 전 조회 841
11년 전 조회 738
11년 전 조회 5,187
11년 전 조회 681
11년 전 조회 702
11년 전 조회 3,157
11년 전 조회 1,015
11년 전 조회 4,559
11년 전 조회 1,934
11년 전 조회 2,736
11년 전 조회 685
11년 전 조회 706
11년 전 조회 1,561
11년 전 조회 746
11년 전 조회 1,711
11년 전 조회 1,681
11년 전 조회 4,587
11년 전 조회 1,091
11년 전 조회 2,241
11년 전 조회 1,515
11년 전 조회 1,572
11년 전 조회 1,632
11년 전 조회 876
11년 전 조회 1,728
11년 전 조회 582
11년 전 조회 3,873
11년 전 조회 1,968
11년 전 조회 1,771
11년 전 조회 1,420
11년 전 조회 6,935
11년 전 조회 1,385
11년 전 조회 988
11년 전 조회 2,476
11년 전 조회 1,825
11년 전 조회 929
11년 전 조회 1,335
11년 전 조회 2,709
11년 전 조회 2,091
11년 전 조회 1,919
11년 전 조회 2,203
11년 전 조회 2,489
11년 전 조회 3,267
11년 전 조회 2,837
11년 전 조회 2,925
11년 전 조회 3,629
11년 전 조회 3,401
11년 전 조회 797
11년 전 조회 4,292
11년 전 조회 5,320
11년 전 조회 1,021
11년 전 조회 2,234
11년 전 조회 1,403
11년 전 조회 744
11년 전 조회 1,146
11년 전 조회 789
11년 전 조회 2,808
11년 전 조회 1,801
11년 전 조회 802
11년 전 조회 923
11년 전 조회 1,318
11년 전 조회 959
11년 전 조회 1,025
11년 전 조회 954
11년 전 조회 939
🐛 버그신고