[TIP] 흐르는 TOP 버튼

· 15년 전 · 1446
흐르는 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,129
15년 전 조회 1,332
15년 전 조회 1,130
15년 전 조회 1,984
15년 전 조회 1,993
15년 전 조회 1,644
15년 전 조회 1,005
15년 전 조회 1,230
15년 전 조회 928
15년 전 조회 876
15년 전 조회 1,133
15년 전 조회 2,483
15년 전 조회 2,517
15년 전 조회 1,492
15년 전 조회 1,029
15년 전 조회 1,187
15년 전 조회 1,188
15년 전 조회 1,055
15년 전 조회 957
15년 전 조회 882
15년 전 조회 1,246
15년 전 조회 1,197
15년 전 조회 944
15년 전 조회 924
15년 전 조회 1,098
15년 전 조회 1,557
15년 전 조회 1,087
15년 전 조회 1,419
15년 전 조회 1,255
15년 전 조회 1,925
15년 전 조회 2,989
15년 전 조회 2,325
15년 전 조회 925
15년 전 조회 1,936
15년 전 조회 2,118
15년 전 조회 1,420
15년 전 조회 1,393
15년 전 조회 2,658
15년 전 조회 2,548
15년 전 조회 5,532
15년 전 조회 1,498
15년 전 조회 4,261
15년 전 조회 1,390
15년 전 조회 1,693
15년 전 조회 1,655
15년 전 조회 1,645
15년 전 조회 1,146
15년 전 조회 1,392
15년 전 조회 1,533
15년 전 조회 1,447
15년 전 조회 2,163
15년 전 조회 1,313
15년 전 조회 1,374
15년 전 조회 918
15년 전 조회 1,022
15년 전 조회 996
15년 전 조회 948
15년 전 조회 903
15년 전 조회 962
15년 전 조회 1,109
15년 전 조회 1,122
15년 전 조회 2,643
15년 전 조회 974
15년 전 조회 1,629
15년 전 조회 1,495
15년 전 조회 1,622
15년 전 조회 1,322
15년 전 조회 1,816
15년 전 조회 632
15년 전 조회 1,120
15년 전 조회 1,090
15년 전 조회 2,870
15년 전 조회 3,198
15년 전 조회 1,869
15년 전 조회 1,383
15년 전 조회 1,995
15년 전 조회 1,502
15년 전 조회 1,093
15년 전 조회 3,791
15년 전 조회 1,445
15년 전 조회 1,537
15년 전 조회 2,772
15년 전 조회 1,462
15년 전 조회 4,190
15년 전 조회 2,400
15년 전 조회 3,184
15년 전 조회 1,790
15년 전 조회 2,020
15년 전 조회 1,323
15년 전 조회 4,403
15년 전 조회 3,983
15년 전 조회 3,802
15년 전 조회 5,227
15년 전 조회 3,439
15년 전 조회 1,829
15년 전 조회 1,778
15년 전 조회 1,927
15년 전 조회 1,617
15년 전 조회 4,016
15년 전 조회 2,944