[TIP] 흐르는 TOP 버튼

· 15년 전 · 1823
흐르는 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,484
15년 전 조회 1,707
15년 전 조회 1,475
15년 전 조회 2,348
15년 전 조회 2,373
15년 전 조회 2,006
15년 전 조회 1,372
15년 전 조회 1,617
15년 전 조회 1,282
15년 전 조회 1,255
15년 전 조회 1,509
15년 전 조회 2,875
15년 전 조회 2,887
15년 전 조회 1,878
15년 전 조회 1,388
15년 전 조회 1,563
15년 전 조회 1,539
15년 전 조회 1,441
15년 전 조회 1,331
15년 전 조회 1,255
15년 전 조회 1,613
15년 전 조회 1,556
15년 전 조회 1,336
15년 전 조회 1,290
15년 전 조회 1,474
15년 전 조회 1,931
15년 전 조회 1,476
15년 전 조회 1,781
15년 전 조회 1,625
15년 전 조회 2,320
15년 전 조회 3,348
15년 전 조회 2,716
15년 전 조회 1,285
15년 전 조회 2,294
15년 전 조회 2,500
15년 전 조회 1,793
15년 전 조회 1,757
15년 전 조회 3,040
15년 전 조회 2,924
15년 전 조회 5,932
15년 전 조회 1,887
15년 전 조회 4,649
15년 전 조회 1,769
15년 전 조회 2,038
15년 전 조회 2,034
15년 전 조회 2,022
15년 전 조회 1,515
15년 전 조회 1,751
15년 전 조회 1,893
15년 전 조회 1,824
15년 전 조회 2,513
15년 전 조회 1,677
15년 전 조회 1,782
15년 전 조회 1,279
15년 전 조회 1,382
15년 전 조회 1,368
15년 전 조회 1,324
15년 전 조회 1,275
15년 전 조회 1,321
15년 전 조회 1,456
15년 전 조회 1,501
15년 전 조회 2,996
15년 전 조회 1,332
15년 전 조회 1,993
15년 전 조회 1,864
15년 전 조회 1,996
15년 전 조회 1,699
15년 전 조회 2,204
15년 전 조회 1,005
15년 전 조회 1,480
15년 전 조회 1,454
15년 전 조회 3,232
15년 전 조회 3,591
15년 전 조회 2,268
15년 전 조회 1,748
15년 전 조회 2,351
15년 전 조회 1,840
15년 전 조회 1,464
15년 전 조회 4,157
15년 전 조회 1,813
15년 전 조회 1,893
15년 전 조회 3,152
15년 전 조회 1,849
15년 전 조회 4,541
15년 전 조회 2,751
15년 전 조회 3,533
15년 전 조회 2,161
15년 전 조회 2,389
15년 전 조회 1,687
15년 전 조회 4,748
15년 전 조회 4,378
16년 전 조회 4,177
16년 전 조회 5,588
16년 전 조회 3,820
16년 전 조회 2,177
16년 전 조회 2,138
16년 전 조회 2,273
16년 전 조회 1,977
16년 전 조회 4,397
16년 전 조회 3,314