[TIP] 흐르는 TOP 버튼

· 15년 전 · 1813
흐르는 TOP 버튼

<!-- 흐르는 TOP 버튼 : 2008. 07. 24 -->
<div id="floater" style="position:absolute; left:1000px; top:500px; width:11px; height:20px; z-index:1">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td><a href="#">TOP</a></td>
</tr>
</table>
</div>
<!-- 흐르는 TOP 버튼 끝 -->




<!-- 흐르는 TOP 버튼 스크립트 : 2008. 07. 24 -->
<script language="JavaScript">
<!--
self.onError=null;
currentX = currentY = 0;
whichIt = null;
lastScrollX = 0; lastScrollY = 0;
NS = (document.layers) ? 1 : 0;
IE = (document.all) ? 1: 0;
<!-- STALKER CODE -->
function heartBeat() {
if(IE) {
  diffY = document.body.scrollTop;
  diffX = 0;
}
if(NS) { diffY = self.pageYOffset; diffX = self.pageXOffset; }
if(diffY != lastScrollY) {
  percent = .1 * (diffY - lastScrollY);
  if(percent > 0) percent = Math.ceil(percent);
  else percent = Math.floor(percent);
  if(IE) document.all.floater.style.pixelTop += percent;
  if(NS) document.floater.top += percent;
  lastScrollY = lastScrollY + percent;
}
if(diffX != lastScrollX) {
  percent = .1 * (diffX - lastScrollX);
  if(percent > 0) percent = Math.ceil(percent);
  else percent = Math.floor(percent);
  if(IE) document.all.floater.style.pixelLeft += percent;
  if(NS) document.floater.top += percent;
  lastScrollY = lastScrollY + percent;
}
}
if(NS || IE) action = window.setInterval("heartBeat()",1);
//-->
</script>
<!-- 흐르는 TOP 버튼 스크립트 끝 --> 
[이 게시물은 관리자님에 의해 2011-10-31 16:57:14 JavaScript에서 이동 됨]
|
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

+
제목 글쓴이 날짜 조회
15년 전 조회 1,472
15년 전 조회 1,699
15년 전 조회 1,467
15년 전 조회 2,339
15년 전 조회 2,363
15년 전 조회 1,995
15년 전 조회 1,362
15년 전 조회 1,606
15년 전 조회 1,269
15년 전 조회 1,243
15년 전 조회 1,498
15년 전 조회 2,863
15년 전 조회 2,875
15년 전 조회 1,872
15년 전 조회 1,380
15년 전 조회 1,553
15년 전 조회 1,530
15년 전 조회 1,427
15년 전 조회 1,321
15년 전 조회 1,246
15년 전 조회 1,598
15년 전 조회 1,547
15년 전 조회 1,328
15년 전 조회 1,281
15년 전 조회 1,466
15년 전 조회 1,921
15년 전 조회 1,468
15년 전 조회 1,771
15년 전 조회 1,615
15년 전 조회 2,313
15년 전 조회 3,337
15년 전 조회 2,702
15년 전 조회 1,275
15년 전 조회 2,277
15년 전 조회 2,494
15년 전 조회 1,786
15년 전 조회 1,748
15년 전 조회 3,028
15년 전 조회 2,915
15년 전 조회 5,924
15년 전 조회 1,881
15년 전 조회 4,641
15년 전 조회 1,758
15년 전 조회 2,026
15년 전 조회 2,023
15년 전 조회 2,012
15년 전 조회 1,508
15년 전 조회 1,741
15년 전 조회 1,883
15년 전 조회 1,814
15년 전 조회 2,498
15년 전 조회 1,666
15년 전 조회 1,774
15년 전 조회 1,269
15년 전 조회 1,376
15년 전 조회 1,358
15년 전 조회 1,309
15년 전 조회 1,268
15년 전 조회 1,311
15년 전 조회 1,445
15년 전 조회 1,494
15년 전 조회 2,984
15년 전 조회 1,324
15년 전 조회 1,987
15년 전 조회 1,855
15년 전 조회 1,984
15년 전 조회 1,688
15년 전 조회 2,196
15년 전 조회 994
15년 전 조회 1,468
15년 전 조회 1,443
15년 전 조회 3,225
15년 전 조회 3,583
15년 전 조회 2,260
15년 전 조회 1,740
15년 전 조회 2,341
15년 전 조회 1,834
15년 전 조회 1,455
15년 전 조회 4,144
15년 전 조회 1,804
15년 전 조회 1,881
15년 전 조회 3,144
15년 전 조회 1,839
15년 전 조회 4,533
15년 전 조회 2,745
15년 전 조회 3,521
15년 전 조회 2,150
15년 전 조회 2,383
15년 전 조회 1,677
15년 전 조회 4,736
15년 전 조회 4,371
16년 전 조회 4,171
16년 전 조회 5,574
16년 전 조회 3,809
16년 전 조회 2,167
16년 전 조회 2,130
16년 전 조회 2,263
16년 전 조회 1,970
16년 전 조회 4,385
16년 전 조회 3,307