[TIP] 흐르는 TOP 버튼

· 15년 전 · 1958
흐르는 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,604
15년 전 조회 1,824
15년 전 조회 1,573
15년 전 조회 2,451
15년 전 조회 2,482
15년 전 조회 2,111
15년 전 조회 1,487
15년 전 조회 1,728
15년 전 조회 1,395
15년 전 조회 1,358
15년 전 조회 1,618
15년 전 조회 2,977
15년 전 조회 3,015
15년 전 조회 1,981
15년 전 조회 1,491
15년 전 조회 1,661
15년 전 조회 1,674
15년 전 조회 1,540
15년 전 조회 1,455
15년 전 조회 1,376
15년 전 조회 1,734
15년 전 조회 1,669
15년 전 조회 1,462
15년 전 조회 1,398
15년 전 조회 1,582
15년 전 조회 2,044
15년 전 조회 1,571
15년 전 조회 1,901
15년 전 조회 1,749
15년 전 조회 2,444
15년 전 조회 3,491
15년 전 조회 2,834
15년 전 조회 1,403
15년 전 조회 2,400
15년 전 조회 2,600
15년 전 조회 1,924
15년 전 조회 1,867
15년 전 조회 3,154
15년 전 조회 3,043
15년 전 조회 6,046
15년 전 조회 1,991
15년 전 조회 4,771
15년 전 조회 1,878
15년 전 조회 2,156
15년 전 조회 2,153
15년 전 조회 2,133
15년 전 조회 1,617
15년 전 조회 1,875
15년 전 조회 1,992
15년 전 조회 1,959
15년 전 조회 2,651
15년 전 조회 1,805
15년 전 조회 1,898
15년 전 조회 1,397
15년 전 조회 1,491
15년 전 조회 1,504
15년 전 조회 1,426
15년 전 조회 1,395
15년 전 조회 1,427
15년 전 조회 1,591
15년 전 조회 1,599
15년 전 조회 3,105
15년 전 조회 1,439
15년 전 조회 2,086
15년 전 조회 1,943
15년 전 조회 2,103
15년 전 조회 1,811
15년 전 조회 2,315
15년 전 조회 1,105
15년 전 조회 1,603
15년 전 조회 1,578
15년 전 조회 3,365
15년 전 조회 3,702
15년 전 조회 2,396
15년 전 조회 1,853
15년 전 조회 2,466
15년 전 조회 1,956
15년 전 조회 1,575
15년 전 조회 4,263
15년 전 조회 1,919
15년 전 조회 2,002
15년 전 조회 3,262
15년 전 조회 1,966
15년 전 조회 4,678
15년 전 조회 2,861
15년 전 조회 3,661
15년 전 조회 2,258
15년 전 조회 2,498
15년 전 조회 1,813
15년 전 조회 4,871
15년 전 조회 4,479
16년 전 조회 4,278
16년 전 조회 5,702
16년 전 조회 3,921
16년 전 조회 2,276
16년 전 조회 2,241
16년 전 조회 2,389
16년 전 조회 2,090
16년 전 조회 4,517
16년 전 조회 3,420