[TIP] 흐르는 TOP 버튼

· 15년 전 · 1494
흐르는 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,183
15년 전 조회 1,379
15년 전 조회 1,174
15년 전 조회 2,025
15년 전 조회 2,040
15년 전 조회 1,691
15년 전 조회 1,047
15년 전 조회 1,286
15년 전 조회 978
15년 전 조회 927
15년 전 조회 1,184
15년 전 조회 2,533
15년 전 조회 2,557
15년 전 조회 1,536
15년 전 조회 1,073
15년 전 조회 1,236
15년 전 조회 1,236
15년 전 조회 1,106
15년 전 조회 999
15년 전 조회 937
15년 전 조회 1,298
15년 전 조회 1,249
15년 전 조회 1,003
15년 전 조회 962
15년 전 조회 1,147
15년 전 조회 1,611
15년 전 조회 1,140
15년 전 조회 1,464
15년 전 조회 1,304
15년 전 조회 1,969
15년 전 조회 3,036
15년 전 조회 2,376
15년 전 조회 974
15년 전 조회 1,983
15년 전 조회 2,179
15년 전 조회 1,474
15년 전 조회 1,442
15년 전 조회 2,706
15년 전 조회 2,595
15년 전 조회 5,584
15년 전 조회 1,542
15년 전 조회 4,315
15년 전 조회 1,441
15년 전 조회 1,732
15년 전 조회 1,704
15년 전 조회 1,703
15년 전 조회 1,201
15년 전 조회 1,441
15년 전 조회 1,577
15년 전 조회 1,495
15년 전 조회 2,210
15년 전 조회 1,355
15년 전 조회 1,425
15년 전 조회 972
15년 전 조회 1,064
15년 전 조회 1,036
15년 전 조회 992
15년 전 조회 945
15년 전 조회 1,013
15년 전 조회 1,153
15년 전 조회 1,163
15년 전 조회 2,698
15년 전 조회 1,018
15년 전 조회 1,670
15년 전 조회 1,539
15년 전 조회 1,669
15년 전 조회 1,373
15년 전 조회 1,870
15년 전 조회 677
15년 전 조회 1,166
15년 전 조회 1,135
15년 전 조회 2,924
15년 전 조회 3,243
15년 전 조회 1,914
15년 전 조회 1,427
15년 전 조회 2,037
15년 전 조회 1,553
15년 전 조회 1,149
15년 전 조회 3,842
15년 전 조회 1,484
15년 전 조회 1,586
15년 전 조회 2,806
15년 전 조회 1,503
15년 전 조회 4,235
15년 전 조회 2,451
15년 전 조회 3,225
15년 전 조회 1,836
15년 전 조회 2,069
15년 전 조회 1,372
15년 전 조회 4,445
15년 전 조회 4,029
15년 전 조회 3,852
15년 전 조회 5,270
15년 전 조회 3,495
15년 전 조회 1,875
15년 전 조회 1,816
15년 전 조회 1,962
15년 전 조회 1,668
15년 전 조회 4,060
15년 전 조회 2,988