[TIP] 흐르는 TOP 버튼

· 15년 전 · 1431
흐르는 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,116
15년 전 조회 1,314
15년 전 조회 1,118
15년 전 조회 1,967
15년 전 조회 1,978
15년 전 조회 1,631
15년 전 조회 989
15년 전 조회 1,219
15년 전 조회 919
15년 전 조회 864
15년 전 조회 1,116
15년 전 조회 2,470
15년 전 조회 2,502
15년 전 조회 1,475
15년 전 조회 1,014
15년 전 조회 1,173
15년 전 조회 1,182
15년 전 조회 1,044
15년 전 조회 944
15년 전 조회 873
15년 전 조회 1,235
15년 전 조회 1,186
15년 전 조회 932
15년 전 조회 909
15년 전 조회 1,080
15년 전 조회 1,545
15년 전 조회 1,078
15년 전 조회 1,405
15년 전 조회 1,241
15년 전 조회 1,916
15년 전 조회 2,978
15년 전 조회 2,311
15년 전 조회 907
15년 전 조회 1,919
15년 전 조회 2,105
15년 전 조회 1,406
15년 전 조회 1,380
15년 전 조회 2,650
15년 전 조회 2,539
15년 전 조회 5,519
15년 전 조회 1,489
15년 전 조회 4,247
15년 전 조회 1,379
15년 전 조회 1,678
15년 전 조회 1,644
15년 전 조회 1,634
15년 전 조회 1,134
15년 전 조회 1,383
15년 전 조회 1,520
15년 전 조회 1,432
15년 전 조회 2,154
15년 전 조회 1,298
15년 전 조회 1,356
15년 전 조회 909
15년 전 조회 1,010
15년 전 조회 979
15년 전 조회 943
15년 전 조회 891
15년 전 조회 956
15년 전 조회 1,097
15년 전 조회 1,110
15년 전 조회 2,632
15년 전 조회 962
15년 전 조회 1,615
15년 전 조회 1,487
15년 전 조회 1,611
15년 전 조회 1,309
15년 전 조회 1,801
15년 전 조회 620
15년 전 조회 1,112
15년 전 조회 1,075
15년 전 조회 2,865
15년 전 조회 3,185
15년 전 조회 1,857
15년 전 조회 1,369
15년 전 조회 1,988
15년 전 조회 1,486
15년 전 조회 1,090
15년 전 조회 3,783
15년 전 조회 1,435
15년 전 조회 1,523
15년 전 조회 2,754
15년 전 조회 1,448
15년 전 조회 4,177
15년 전 조회 2,388
15년 전 조회 3,171
15년 전 조회 1,783
15년 전 조회 2,010
15년 전 조회 1,312
15년 전 조회 4,395
15년 전 조회 3,974
15년 전 조회 3,790
15년 전 조회 5,211
15년 전 조회 3,428
15년 전 조회 1,813
15년 전 조회 1,768
15년 전 조회 1,918
15년 전 조회 1,607
15년 전 조회 4,008
15년 전 조회 2,923