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,863
11년 전 조회 2,268
11년 전 조회 1,037
11년 전 조회 823
11년 전 조회 957
11년 전 조회 1,071
11년 전 조회 1,321
11년 전 조회 1.5만
11년 전 조회 1,426
11년 전 조회 581
11년 전 조회 616
11년 전 조회 880
11년 전 조회 3,152
11년 전 조회 979
11년 전 조회 749
11년 전 조회 792
11년 전 조회 649
11년 전 조회 829
11년 전 조회 1,584
11년 전 조회 567
11년 전 조회 1,009
11년 전 조회 1,678
11년 전 조회 526
11년 전 조회 1,401
11년 전 조회 725
11년 전 조회 870
11년 전 조회 1,318
11년 전 조회 1,606
11년 전 조회 581
11년 전 조회 1,157
11년 전 조회 503
11년 전 조회 3,645
11년 전 조회 1,075
11년 전 조회 1,321
11년 전 조회 1,143
11년 전 조회 581
11년 전 조회 724
11년 전 조회 614
11년 전 조회 5,060
11년 전 조회 558
11년 전 조회 575
11년 전 조회 3,028
11년 전 조회 888
11년 전 조회 4,426
11년 전 조회 1,806
11년 전 조회 2,616
11년 전 조회 554
11년 전 조회 572
11년 전 조회 1,434
11년 전 조회 620
11년 전 조회 1,592
11년 전 조회 1,575
11년 전 조회 4,454
11년 전 조회 959
11년 전 조회 2,119
11년 전 조회 1,395
11년 전 조회 1,431
11년 전 조회 1,513
11년 전 조회 746
11년 전 조회 1,602
11년 전 조회 462
11년 전 조회 3,751
11년 전 조회 1,841
11년 전 조회 1,641
11년 전 조회 1,294
11년 전 조회 6,809
11년 전 조회 1,260
11년 전 조회 862
11년 전 조회 2,358
11년 전 조회 1,697
11년 전 조회 815
11년 전 조회 1,212
11년 전 조회 2,591
11년 전 조회 1,962
11년 전 조회 1,795
11년 전 조회 2,091
11년 전 조회 2,358
11년 전 조회 3,138
11년 전 조회 2,702
11년 전 조회 2,799
11년 전 조회 3,506
11년 전 조회 3,269
11년 전 조회 679
11년 전 조회 4,168
11년 전 조회 5,179
11년 전 조회 893
11년 전 조회 2,106
11년 전 조회 1,280
11년 전 조회 623
11년 전 조회 1,017
11년 전 조회 671
11년 전 조회 2,680
11년 전 조회 1,661
11년 전 조회 672
11년 전 조회 800
11년 전 조회 1,200
11년 전 조회 834
11년 전 조회 905
11년 전 조회 832
11년 전 조회 814
🐛 버그신고