[TIP] 흐르는 TOP 버튼

· 15년 전 · 1704
흐르는 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,383
15년 전 조회 1,607
15년 전 조회 1,376
15년 전 조회 2,241
15년 전 조회 2,263
15년 전 조회 1,898
15년 전 조회 1,266
15년 전 조회 1,514
15년 전 조회 1,181
15년 전 조회 1,144
15년 전 조회 1,393
15년 전 조회 2,766
15년 전 조회 2,781
15년 전 조회 1,768
15년 전 조회 1,289
15년 전 조회 1,463
15년 전 조회 1,436
15년 전 조회 1,346
15년 전 조회 1,218
15년 전 조회 1,149
15년 전 조회 1,501
15년 전 조회 1,454
15년 전 조회 1,222
15년 전 조회 1,180
15년 전 조회 1,365
15년 전 조회 1,834
15년 전 조회 1,367
15년 전 조회 1,681
15년 전 조회 1,510
15년 전 조회 2,248
15년 전 조회 3,245
15년 전 조회 2,612
15년 전 조회 1,180
15년 전 조회 2,184
15년 전 조회 2,395
15년 전 조회 1,694
15년 전 조회 1,654
15년 전 조회 2,929
15년 전 조회 2,851
15년 전 조회 5,856
15년 전 조회 1,774
15년 전 조회 4,581
15년 전 조회 1,667
15년 전 조회 1,933
15년 전 조회 1,917
15년 전 조회 1,909
15년 전 조회 1,405
15년 전 조회 1,647
15년 전 조회 1,797
15년 전 조회 1,705
15년 전 조회 2,413
15년 전 조회 1,582
15년 전 조회 1,702
15년 전 조회 1,177
15년 전 조회 1,280
15년 전 조회 1,263
15년 전 조회 1,224
15년 전 조회 1,168
15년 전 조회 1,214
15년 전 조회 1,355
15년 전 조회 1,398
15년 전 조회 2,898
15년 전 조회 1,226
15년 전 조회 1,882
15년 전 조회 1,759
15년 전 조회 1,882
15년 전 조회 1,586
15년 전 조회 2,085
15년 전 조회 899
15년 전 조회 1,358
15년 전 조회 1,340
15년 전 조회 3,122
15년 전 조회 3,511
15년 전 조회 2,185
15년 전 조회 1,631
15년 전 조회 2,251
15년 전 조회 1,742
15년 전 조회 1,360
15년 전 조회 4,046
15년 전 조회 1,717
15년 전 조회 1,785
15년 전 조회 3,080
15년 전 조회 1,772
15년 전 조회 4,449
15년 전 조회 2,650
15년 전 조회 3,429
15년 전 조회 2,061
15년 전 조회 2,285
15년 전 조회 1,573
15년 전 조회 4,635
15년 전 조회 4,292
15년 전 조회 4,092
15년 전 조회 5,478
15년 전 조회 3,715
15년 전 조회 2,071
16년 전 조회 2,026
16년 전 조회 2,173
16년 전 조회 1,874
16년 전 조회 4,314
16년 전 조회 3,202