[TIP] 흐르는 TOP 버튼

· 15년 전 · 1788
흐르는 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,453
15년 전 조회 1,677
15년 전 조회 1,435
15년 전 조회 2,314
15년 전 조회 2,333
15년 전 조회 1,980
15년 전 조회 1,340
15년 전 조회 1,587
15년 전 조회 1,253
15년 전 조회 1,227
15년 전 조회 1,478
15년 전 조회 2,845
15년 전 조회 2,853
15년 전 조회 1,855
15년 전 조회 1,360
15년 전 조회 1,536
15년 전 조회 1,512
15년 전 조회 1,416
15년 전 조회 1,299
15년 전 조회 1,227
15년 전 조회 1,576
15년 전 조회 1,524
15년 전 조회 1,305
15년 전 조회 1,259
15년 전 조회 1,442
15년 전 조회 1,908
15년 전 조회 1,447
15년 전 조회 1,754
15년 전 조회 1,594
15년 전 조회 2,304
15년 전 조회 3,320
15년 전 조회 2,690
15년 전 조회 1,251
15년 전 조회 2,253
15년 전 조회 2,479
15년 전 조회 1,763
15년 전 조회 1,729
15년 전 조회 3,002
15년 전 조회 2,905
15년 전 조회 5,914
15년 전 조회 1,860
15년 전 조회 4,628
15년 전 조회 1,738
15년 전 조회 2,010
15년 전 조회 2,001
15년 전 조회 1,990
15년 전 조회 1,487
15년 전 조회 1,728
15년 전 조회 1,855
15년 전 조회 1,789
15년 전 조회 2,485
15년 전 조회 1,651
15년 전 조회 1,762
15년 전 조회 1,249
15년 전 조회 1,352
15년 전 조회 1,334
15년 전 조회 1,290
15년 전 조회 1,249
15년 전 조회 1,290
15년 전 조회 1,429
15년 전 조회 1,471
15년 전 조회 2,969
15년 전 조회 1,301
15년 전 조회 1,960
15년 전 조회 1,841
15년 전 조회 1,966
15년 전 조회 1,666
15년 전 조회 2,176
15년 전 조회 979
15년 전 조회 1,444
15년 전 조회 1,422
15년 전 조회 3,203
15년 전 조회 3,572
15년 전 조회 2,248
15년 전 조회 1,713
15년 전 조회 2,322
15년 전 조회 1,814
15년 전 조회 1,435
15년 전 조회 4,128
15년 전 조회 1,788
15년 전 조회 1,858
15년 전 조회 3,134
15년 전 조회 1,822
15년 전 조회 4,520
15년 전 조회 2,727
15년 전 조회 3,503
15년 전 조회 2,132
15년 전 조회 2,367
15년 전 조회 1,659
15년 전 조회 4,712
15년 전 조회 4,351
16년 전 조회 4,155
16년 전 조회 5,555
16년 전 조회 3,780
16년 전 조회 2,149
16년 전 조회 2,105
16년 전 조회 2,246
16년 전 조회 1,943
16년 전 조회 4,370
16년 전 조회 3,281