[TIP] 흐르는 TOP 버튼

· 15년 전 · 1745
흐르는 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,419
15년 전 조회 1,634
15년 전 조회 1,403
15년 전 조회 2,272
15년 전 조회 2,286
15년 전 조회 1,926
15년 전 조회 1,298
15년 전 조회 1,549
15년 전 조회 1,209
15년 전 조회 1,173
15년 전 조회 1,425
15년 전 조회 2,793
15년 전 조회 2,807
15년 전 조회 1,802
15년 전 조회 1,312
15년 전 조회 1,492
15년 전 조회 1,470
15년 전 조회 1,376
15년 전 조회 1,243
15년 전 조회 1,180
15년 전 조회 1,533
15년 전 조회 1,484
15년 전 조회 1,263
15년 전 조회 1,210
15년 전 조회 1,396
15년 전 조회 1,862
15년 전 조회 1,400
15년 전 조회 1,710
15년 전 조회 1,550
15년 전 조회 2,271
15년 전 조회 3,274
15년 전 조회 2,636
15년 전 조회 1,212
15년 전 조회 2,215
15년 전 조회 2,426
15년 전 조회 1,721
15년 전 조회 1,680
15년 전 조회 2,960
15년 전 조회 2,874
15년 전 조회 5,877
15년 전 조회 1,811
15년 전 조회 4,602
15년 전 조회 1,707
15년 전 조회 1,963
15년 전 조회 1,950
15년 전 조회 1,940
15년 전 조회 1,436
15년 전 조회 1,680
15년 전 조회 1,822
15년 전 조회 1,746
15년 전 조회 2,448
15년 전 조회 1,611
15년 전 조회 1,730
15년 전 조회 1,210
15년 전 조회 1,308
15년 전 조회 1,296
15년 전 조회 1,250
15년 전 조회 1,201
15년 전 조회 1,248
15년 전 조회 1,390
15년 전 조회 1,429
15년 전 조회 2,924
15년 전 조회 1,260
15년 전 조회 1,915
15년 전 조회 1,791
15년 전 조회 1,921
15년 전 조회 1,615
15년 전 조회 2,124
15년 전 조회 926
15년 전 조회 1,395
15년 전 조회 1,376
15년 전 조회 3,153
15년 전 조회 3,535
15년 전 조회 2,213
15년 전 조회 1,661
15년 전 조회 2,288
15년 전 조회 1,773
15년 전 조회 1,394
15년 전 조회 4,076
15년 전 조회 1,748
15년 전 조회 1,816
15년 전 조회 3,112
15년 전 조회 1,800
15년 전 조회 4,475
15년 전 조회 2,682
15년 전 조회 3,460
15년 전 조회 2,089
15년 전 조회 2,320
15년 전 조회 1,612
15년 전 조회 4,670
15년 전 조회 4,318
15년 전 조회 4,123
16년 전 조회 5,515
16년 전 조회 3,744
16년 전 조회 2,106
16년 전 조회 2,055
16년 전 조회 2,203
16년 전 조회 1,905
16년 전 조회 4,340
16년 전 조회 3,235