[TIP] 흐르는 TOP 버튼

· 15년 전 · 1995
흐르는 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,648
15년 전 조회 1,862
15년 전 조회 1,625
15년 전 조회 2,492
15년 전 조회 2,517
15년 전 조회 2,148
15년 전 조회 1,530
15년 전 조회 1,769
15년 전 조회 1,438
15년 전 조회 1,398
15년 전 조회 1,658
15년 전 조회 3,025
15년 전 조회 3,056
15년 전 조회 2,023
15년 전 조회 1,533
15년 전 조회 1,710
15년 전 조회 1,722
15년 전 조회 1,598
15년 전 조회 1,504
15년 전 조회 1,414
15년 전 조회 1,770
15년 전 조회 1,727
15년 전 조회 1,507
15년 전 조회 1,451
15년 전 조회 1,632
15년 전 조회 2,092
15년 전 조회 1,621
15년 전 조회 1,950
15년 전 조회 1,783
15년 전 조회 2,486
15년 전 조회 3,545
15년 전 조회 2,875
15년 전 조회 1,443
15년 전 조회 2,445
15년 전 조회 2,644
15년 전 조회 1,964
15년 전 조회 1,913
15년 전 조회 3,202
15년 전 조회 3,085
15년 전 조회 6,088
15년 전 조회 2,045
15년 전 조회 4,804
15년 전 조회 1,925
15년 전 조회 2,202
15년 전 조회 2,191
15년 전 조회 2,188
15년 전 조회 1,665
15년 전 조회 1,911
15년 전 조회 2,037
15년 전 조회 1,996
15년 전 조회 2,691
15년 전 조회 1,833
15년 전 조회 1,938
15년 전 조회 1,437
15년 전 조회 1,543
15년 전 조회 1,534
15년 전 조회 1,473
15년 전 조회 1,434
15년 전 조회 1,472
15년 전 조회 1,622
15년 전 조회 1,649
15년 전 조회 3,157
15년 전 조회 1,484
15년 전 조회 2,131
15년 전 조회 1,989
15년 전 조회 2,145
15년 전 조회 1,858
15년 전 조회 2,356
15년 전 조회 1,157
15년 전 조회 1,634
15년 전 조회 1,607
15년 전 조회 3,406
15년 전 조회 3,748
15년 전 조회 2,440
15년 전 조회 1,889
15년 전 조회 2,519
15년 전 조회 2,003
15년 전 조회 1,623
15년 전 조회 4,316
15년 전 조회 1,972
15년 전 조회 2,044
15년 전 조회 3,305
15년 전 조회 2,013
15년 전 조회 4,711
15년 전 조회 2,903
15년 전 조회 3,708
15년 전 조회 2,311
15년 전 조회 2,557
15년 전 조회 1,847
15년 전 조회 4,909
16년 전 조회 4,521
16년 전 조회 4,316
16년 전 조회 5,739
16년 전 조회 3,966
16년 전 조회 2,319
16년 전 조회 2,297
16년 전 조회 2,434
16년 전 조회 2,132
16년 전 조회 4,561
16년 전 조회 3,461