[TIP] 흐르는 TOP 버튼

· 15년 전 · 2024
흐르는 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,693
15년 전 조회 1,898
15년 전 조회 1,657
15년 전 조회 2,530
15년 전 조회 2,549
15년 전 조회 2,188
15년 전 조회 1,562
15년 전 조회 1,817
15년 전 조회 1,468
15년 전 조회 1,439
15년 전 조회 1,694
15년 전 조회 3,058
15년 전 조회 3,087
15년 전 조회 2,061
15년 전 조회 1,560
15년 전 조회 1,738
15년 전 조회 1,755
15년 전 조회 1,630
15년 전 조회 1,532
15년 전 조회 1,442
15년 전 조회 1,799
15년 전 조회 1,758
15년 전 조회 1,538
15년 전 조회 1,487
15년 전 조회 1,656
15년 전 조회 2,135
15년 전 조회 1,645
15년 전 조회 1,977
15년 전 조회 1,807
15년 전 조회 2,521
15년 전 조회 3,588
15년 전 조회 2,920
15년 전 조회 1,476
15년 전 조회 2,476
15년 전 조회 2,672
15년 전 조회 1,989
15년 전 조회 1,943
15년 전 조회 3,238
15년 전 조회 3,116
15년 전 조회 6,123
15년 전 조회 2,068
15년 전 조회 4,844
15년 전 조회 1,952
15년 전 조회 2,239
15년 전 조회 2,217
15년 전 조회 2,217
15년 전 조회 1,698
15년 전 조회 1,946
15년 전 조회 2,074
15년 전 조회 2,025
15년 전 조회 2,720
15년 전 조회 1,865
15년 전 조회 1,976
15년 전 조회 1,466
15년 전 조회 1,579
15년 전 조회 1,575
15년 전 조회 1,498
15년 전 조회 1,463
15년 전 조회 1,504
15년 전 조회 1,655
15년 전 조회 1,676
15년 전 조회 3,191
15년 전 조회 1,515
15년 전 조회 2,171
15년 전 조회 2,029
15년 전 조회 2,184
15년 전 조회 1,891
15년 전 조회 2,389
15년 전 조회 1,197
15년 전 조회 1,677
15년 전 조회 1,646
15년 전 조회 3,444
15년 전 조회 3,780
15년 전 조회 2,478
15년 전 조회 1,928
15년 전 조회 2,561
15년 전 조회 2,040
15년 전 조회 1,661
15년 전 조회 4,350
15년 전 조회 1,999
15년 전 조회 2,090
15년 전 조회 3,350
15년 전 조회 2,054
15년 전 조회 4,744
15년 전 조회 2,935
15년 전 조회 3,740
15년 전 조회 2,346
15년 전 조회 2,590
15년 전 조회 1,882
16년 전 조회 4,935
16년 전 조회 4,560
16년 전 조회 4,346
16년 전 조회 5,772
16년 전 조회 3,991
16년 전 조회 2,349
16년 전 조회 2,330
16년 전 조회 2,464
16년 전 조회 2,155
16년 전 조회 4,599
16년 전 조회 3,500