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,865
11년 전 조회 2,269
11년 전 조회 1,037
11년 전 조회 826
11년 전 조회 957
11년 전 조회 1,071
11년 전 조회 1,323
11년 전 조회 1.5만
11년 전 조회 1,429
11년 전 조회 583
11년 전 조회 617
11년 전 조회 881
11년 전 조회 3,153
11년 전 조회 979
11년 전 조회 751
11년 전 조회 794
11년 전 조회 651
11년 전 조회 830
11년 전 조회 1,584
11년 전 조회 568
11년 전 조회 1,009
11년 전 조회 1,680
11년 전 조회 528
11년 전 조회 1,401
11년 전 조회 726
11년 전 조회 870
11년 전 조회 1,321
11년 전 조회 1,608
11년 전 조회 583
11년 전 조회 1,160
11년 전 조회 504
11년 전 조회 3,648
11년 전 조회 1,076
11년 전 조회 1,321
11년 전 조회 1,144
11년 전 조회 584
11년 전 조회 726
11년 전 조회 618
11년 전 조회 5,065
11년 전 조회 561
11년 전 조회 576
11년 전 조회 3,029
11년 전 조회 891
11년 전 조회 4,428
11년 전 조회 1,809
11년 전 조회 2,617
11년 전 조회 555
11년 전 조회 575
11년 전 조회 1,436
11년 전 조회 622
11년 전 조회 1,593
11년 전 조회 1,576
11년 전 조회 4,455
11년 전 조회 962
11년 전 조회 2,121
11년 전 조회 1,397
11년 전 조회 1,433
11년 전 조회 1,515
11년 전 조회 748
11년 전 조회 1,603
11년 전 조회 463
11년 전 조회 3,752
11년 전 조회 1,841
11년 전 조회 1,642
11년 전 조회 1,297
11년 전 조회 6,811
11년 전 조회 1,260
11년 전 조회 863
11년 전 조회 2,360
11년 전 조회 1,697
11년 전 조회 818
11년 전 조회 1,213
11년 전 조회 2,593
11년 전 조회 1,962
11년 전 조회 1,796
11년 전 조회 2,091
11년 전 조회 2,358
11년 전 조회 3,139
11년 전 조회 2,703
11년 전 조회 2,800
11년 전 조회 3,508
11년 전 조회 3,270
11년 전 조회 680
11년 전 조회 4,170
11년 전 조회 5,180
11년 전 조회 894
11년 전 조회 2,108
11년 전 조회 1,282
11년 전 조회 623
11년 전 조회 1,018
11년 전 조회 675
11년 전 조회 2,680
11년 전 조회 1,665
11년 전 조회 672
11년 전 조회 805
11년 전 조회 1,201
11년 전 조회 837
11년 전 조회 905
11년 전 조회 833
11년 전 조회 816
🐛 버그신고