[TIP] 흐르는 TOP 버튼

· 15년 전 · 1831
흐르는 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,491
15년 전 조회 1,713
15년 전 조회 1,478
15년 전 조회 2,352
15년 전 조회 2,382
15년 전 조회 2,010
15년 전 조회 1,375
15년 전 조회 1,624
15년 전 조회 1,291
15년 전 조회 1,258
15년 전 조회 1,514
15년 전 조회 2,877
15년 전 조회 2,894
15년 전 조회 1,883
15년 전 조회 1,393
15년 전 조회 1,565
15년 전 조회 1,546
15년 전 조회 1,447
15년 전 조회 1,337
15년 전 조회 1,259
15년 전 조회 1,618
15년 전 조회 1,562
15년 전 조회 1,342
15년 전 조회 1,296
15년 전 조회 1,480
15년 전 조회 1,938
15년 전 조회 1,482
15년 전 조회 1,789
15년 전 조회 1,630
15년 전 조회 2,328
15년 전 조회 3,363
15년 전 조회 2,723
15년 전 조회 1,290
15년 전 조회 2,298
15년 전 조회 2,505
15년 전 조회 1,796
15년 전 조회 1,762
15년 전 조회 3,044
15년 전 조회 2,929
15년 전 조회 5,937
15년 전 조회 1,898
15년 전 조회 4,653
15년 전 조회 1,773
15년 전 조회 2,040
15년 전 조회 2,037
15년 전 조회 2,029
15년 전 조회 1,517
15년 전 조회 1,758
15년 전 조회 1,895
15년 전 조회 1,832
15년 전 조회 2,517
15년 전 조회 1,683
15년 전 조회 1,787
15년 전 조회 1,288
15년 전 조회 1,387
15년 전 조회 1,372
15년 전 조회 1,330
15년 전 조회 1,279
15년 전 조회 1,324
15년 전 조회 1,463
15년 전 조회 1,510
15년 전 조회 2,999
15년 전 조회 1,335
15년 전 조회 1,996
15년 전 조회 1,868
15년 전 조회 2,006
15년 전 조회 1,702
15년 전 조회 2,209
15년 전 조회 1,015
15년 전 조회 1,482
15년 전 조회 1,458
15년 전 조회 3,237
15년 전 조회 3,597
15년 전 조회 2,271
15년 전 조회 1,754
15년 전 조회 2,360
15년 전 조회 1,848
15년 전 조회 1,468
15년 전 조회 4,161
15년 전 조회 1,818
15년 전 조회 1,895
15년 전 조회 3,163
15년 전 조회 1,855
15년 전 조회 4,550
15년 전 조회 2,757
15년 전 조회 3,538
15년 전 조회 2,166
15년 전 조회 2,397
15년 전 조회 1,690
15년 전 조회 4,751
15년 전 조회 4,382
16년 전 조회 4,183
16년 전 조회 5,592
16년 전 조회 3,823
16년 전 조회 2,180
16년 전 조회 2,141
16년 전 조회 2,280
16년 전 조회 1,985
16년 전 조회 4,399
16년 전 조회 3,318