[TIP] 흐르는 TOP 버튼

· 15년 전 · 1566
흐르는 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,247
15년 전 조회 1,464
15년 전 조회 1,239
15년 전 조회 2,099
15년 전 조회 2,115
15년 전 조회 1,756
15년 전 조회 1,115
15년 전 조회 1,372
15년 전 조회 1,037
15년 전 조회 996
15년 전 조회 1,256
15년 전 조회 2,624
15년 전 조회 2,639
15년 전 조회 1,615
15년 전 조회 1,148
15년 전 조회 1,305
15년 전 조회 1,316
15년 전 조회 1,201
15년 전 조회 1,073
15년 전 조회 1,019
15년 전 조회 1,364
15년 전 조회 1,322
15년 전 조회 1,071
15년 전 조회 1,047
15년 전 조회 1,217
15년 전 조회 1,688
15년 전 조회 1,226
15년 전 조회 1,551
15년 전 조회 1,379
15년 전 조회 2,108
15년 전 조회 3,127
15년 전 조회 2,454
15년 전 조회 1,043
15년 전 조회 2,063
15년 전 조회 2,258
15년 전 조회 1,549
15년 전 조회 1,517
15년 전 조회 2,798
15년 전 조회 2,721
15년 전 조회 5,704
15년 전 조회 1,616
15년 전 조회 4,432
15년 전 조회 1,510
15년 전 조회 1,806
15년 전 조회 1,773
15년 전 조회 1,775
15년 전 조회 1,272
15년 전 조회 1,519
15년 전 조회 1,662
15년 전 조회 1,567
15년 전 조회 2,280
15년 전 조회 1,437
15년 전 조회 1,544
15년 전 조회 1,050
15년 전 조회 1,140
15년 전 조회 1,127
15년 전 조회 1,091
15년 전 조회 1,014
15년 전 조회 1,088
15년 전 조회 1,224
15년 전 조회 1,250
15년 전 조회 2,773
15년 전 조회 1,080
15년 전 조회 1,741
15년 전 조회 1,615
15년 전 조회 1,739
15년 전 조회 1,445
15년 전 조회 1,938
15년 전 조회 763
15년 전 조회 1,228
15년 전 조회 1,202
15년 전 조회 2,997
15년 전 조회 3,358
15년 전 조회 2,029
15년 전 조회 1,489
15년 전 조회 2,111
15년 전 조회 1,609
15년 전 조회 1,227
15년 전 조회 3,915
15년 전 조회 1,552
15년 전 조회 1,654
15년 전 조회 2,926
15년 전 조회 1,619
15년 전 조회 4,317
15년 전 조회 2,507
15년 전 조회 3,285
15년 전 조회 1,918
15년 전 조회 2,153
15년 전 조회 1,441
15년 전 조회 4,514
15년 전 조회 4,145
15년 전 조회 3,951
15년 전 조회 5,338
15년 전 조회 3,579
15년 전 조회 1,943
15년 전 조회 1,887
15년 전 조회 2,029
15년 전 조회 1,735
16년 전 조회 4,161
16년 전 조회 3,054