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,873
11년 전 조회 2,278
11년 전 조회 1,044
11년 전 조회 834
11년 전 조회 965
11년 전 조회 1,077
11년 전 조회 1,330
11년 전 조회 1.5만
11년 전 조회 1,439
11년 전 조회 593
11년 전 조회 624
11년 전 조회 890
11년 전 조회 3,157
11년 전 조회 987
11년 전 조회 760
11년 전 조회 803
11년 전 조회 660
11년 전 조회 838
11년 전 조회 1,593
11년 전 조회 575
11년 전 조회 1,017
11년 전 조회 1,688
11년 전 조회 534
11년 전 조회 1,405
11년 전 조회 731
11년 전 조회 877
11년 전 조회 1,328
11년 전 조회 1,616
11년 전 조회 593
11년 전 조회 1,166
11년 전 조회 507
11년 전 조회 3,656
11년 전 조회 1,080
11년 전 조회 1,325
11년 전 조회 1,153
11년 전 조회 593
11년 전 조회 731
11년 전 조회 623
11년 전 조회 5,071
11년 전 조회 571
11년 전 조회 582
11년 전 조회 3,034
11년 전 조회 893
11년 전 조회 4,430
11년 전 조회 1,812
11년 전 조회 2,622
11년 전 조회 562
11년 전 조회 579
11년 전 조회 1,444
11년 전 조회 629
11년 전 조회 1,597
11년 전 조회 1,579
11년 전 조회 4,463
11년 전 조회 965
11년 전 조회 2,129
11년 전 조회 1,402
11년 전 조회 1,440
11년 전 조회 1,519
11년 전 조회 751
11년 전 조회 1,613
11년 전 조회 468
11년 전 조회 3,755
11년 전 조회 1,851
11년 전 조회 1,653
11년 전 조회 1,302
11년 전 조회 6,817
11년 전 조회 1,271
11년 전 조회 866
11년 전 조회 2,363
11년 전 조회 1,700
11년 전 조회 822
11년 전 조회 1,217
11년 전 조회 2,602
11년 전 조회 1,967
11년 전 조회 1,800
11년 전 조회 2,095
11년 전 조회 2,365
11년 전 조회 3,145
11년 전 조회 2,708
11년 전 조회 2,806
11년 전 조회 3,514
11년 전 조회 3,275
11년 전 조회 685
11년 전 조회 4,176
11년 전 조회 5,182
11년 전 조회 902
11년 전 조회 2,115
11년 전 조회 1,289
11년 전 조회 628
11년 전 조회 1,020
11년 전 조회 677
11년 전 조회 2,685
11년 전 조회 1,668
11년 전 조회 678
11년 전 조회 808
11년 전 조회 1,204
11년 전 조회 843
11년 전 조회 909
11년 전 조회 839
11년 전 조회 821
🐛 버그신고