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,874
11년 전 조회 2,279
11년 전 조회 1,046
11년 전 조회 835
11년 전 조회 967
11년 전 조회 1,079
11년 전 조회 1,332
11년 전 조회 1.5만
11년 전 조회 1,441
11년 전 조회 595
11년 전 조회 624
11년 전 조회 891
11년 전 조회 3,161
11년 전 조회 988
11년 전 조회 762
11년 전 조회 803
11년 전 조회 660
11년 전 조회 838
11년 전 조회 1,595
11년 전 조회 576
11년 전 조회 1,017
11년 전 조회 1,689
11년 전 조회 535
11년 전 조회 1,408
11년 전 조회 731
11년 전 조회 877
11년 전 조회 1,329
11년 전 조회 1,616
11년 전 조회 595
11년 전 조회 1,167
11년 전 조회 508
11년 전 조회 3,657
11년 전 조회 1,082
11년 전 조회 1,326
11년 전 조회 1,153
11년 전 조회 593
11년 전 조회 732
11년 전 조회 623
11년 전 조회 5,073
11년 전 조회 571
11년 전 조회 584
11년 전 조회 3,035
11년 전 조회 893
11년 전 조회 4,431
11년 전 조회 1,813
11년 전 조회 2,624
11년 전 조회 562
11년 전 조회 581
11년 전 조회 1,444
11년 전 조회 632
11년 전 조회 1,599
11년 전 조회 1,580
11년 전 조회 4,465
11년 전 조회 965
11년 전 조회 2,130
11년 전 조회 1,403
11년 전 조회 1,442
11년 전 조회 1,520
11년 전 조회 751
11년 전 조회 1,613
11년 전 조회 469
11년 전 조회 3,758
11년 전 조회 1,852
11년 전 조회 1,654
11년 전 조회 1,304
11년 전 조회 6,817
11년 전 조회 1,271
11년 전 조회 869
11년 전 조회 2,364
11년 전 조회 1,703
11년 전 조회 822
11년 전 조회 1,219
11년 전 조회 2,602
11년 전 조회 1,968
11년 전 조회 1,802
11년 전 조회 2,096
11년 전 조회 2,367
11년 전 조회 3,146
11년 전 조회 2,710
11년 전 조회 2,807
11년 전 조회 3,515
11년 전 조회 3,276
11년 전 조회 685
11년 전 조회 4,176
11년 전 조회 5,184
11년 전 조회 903
11년 전 조회 2,116
11년 전 조회 1,289
11년 전 조회 629
11년 전 조회 1,021
11년 전 조회 678
11년 전 조회 2,687
11년 전 조회 1,670
11년 전 조회 679
11년 전 조회 808
11년 전 조회 1,205
11년 전 조회 845
11년 전 조회 909
11년 전 조회 839
11년 전 조회 822
🐛 버그신고