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,860
11년 전 조회 2,259
11년 전 조회 1,029
11년 전 조회 817
11년 전 조회 952
11년 전 조회 1,062
11년 전 조회 1,315
11년 전 조회 1.5만
11년 전 조회 1,422
11년 전 조회 577
11년 전 조회 607
11년 전 조회 873
11년 전 조회 3,141
11년 전 조회 970
11년 전 조회 743
11년 전 조회 786
11년 전 조회 643
11년 전 조회 821
11년 전 조회 1,581
11년 전 조회 562
11년 전 조회 1,004
11년 전 조회 1,674
11년 전 조회 521
11년 전 조회 1,392
11년 전 조회 718
11년 전 조회 862
11년 전 조회 1,314
11년 전 조회 1,601
11년 전 조회 577
11년 전 조회 1,152
11년 전 조회 491
11년 전 조회 3,641
11년 전 조회 1,070
11년 전 조회 1,312
11년 전 조회 1,138
11년 전 조회 581
11년 전 조회 717
11년 전 조회 609
11년 전 조회 5,055
11년 전 조회 555
11년 전 조회 567
11년 전 조회 3,021
11년 전 조회 877
11년 전 조회 4,417
11년 전 조회 1,800
11년 전 조회 2,608
11년 전 조회 546
11년 전 조회 567
11년 전 조회 1,432
11년 전 조회 618
11년 전 조회 1,584
11년 전 조회 1,572
11년 전 조회 4,451
11년 전 조회 952
11년 전 조회 2,114
11년 전 조회 1,391
11년 전 조회 1,431
11년 전 조회 1,511
11년 전 조회 739
11년 전 조회 1,599
11년 전 조회 457
11년 전 조회 3,742
11년 전 조회 1,831
11년 전 조회 1,635
11년 전 조회 1,286
11년 전 조회 6,803
11년 전 조회 1,255
11년 전 조회 854
11년 전 조회 2,355
11년 전 조회 1,690
11년 전 조회 807
11년 전 조회 1,205
11년 전 조회 2,584
11년 전 조회 1,956
11년 전 조회 1,787
11년 전 조회 2,083
11년 전 조회 2,348
11년 전 조회 3,130
11년 전 조회 2,691
11년 전 조회 2,790
11년 전 조회 3,499
11년 전 조회 3,264
11년 전 조회 676
11년 전 조회 4,161
11년 전 조회 5,170
11년 전 조회 885
11년 전 조회 2,098
11년 전 조회 1,274
11년 전 조회 612
11년 전 조회 1,006
11년 전 조회 662
11년 전 조회 2,676
11년 전 조회 1,654
11년 전 조회 663
11년 전 조회 792
11년 전 조회 1,191
11년 전 조회 828
11년 전 조회 902
11년 전 조회 826
11년 전 조회 805
🐛 버그신고