[TIP] 흐르는 TOP 버튼

· 15년 전 · 1412
흐르는 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,105
15년 전 조회 1,301
15년 전 조회 1,099
15년 전 조회 1,952
15년 전 조회 1,961
15년 전 조회 1,613
15년 전 조회 970
15년 전 조회 1,207
15년 전 조회 904
15년 전 조회 850
15년 전 조회 1,101
15년 전 조회 2,459
15년 전 조회 2,479
15년 전 조회 1,455
15년 전 조회 1,005
15년 전 조회 1,162
15년 전 조회 1,159
15년 전 조회 1,030
15년 전 조회 929
15년 전 조회 859
15년 전 조회 1,219
15년 전 조회 1,173
15년 전 조회 919
15년 전 조회 893
15년 전 조회 1,065
15년 전 조회 1,532
15년 전 조회 1,061
15년 전 조회 1,388
15년 전 조회 1,228
15년 전 조회 1,902
15년 전 조회 2,962
15년 전 조회 2,299
15년 전 조회 894
15년 전 조회 1,906
15년 전 조회 2,093
15년 전 조회 1,395
15년 전 조회 1,368
15년 전 조회 2,635
15년 전 조회 2,522
15년 전 조회 5,505
15년 전 조회 1,474
15년 전 조회 4,236
15년 전 조회 1,364
15년 전 조회 1,665
15년 전 조회 1,626
15년 전 조회 1,620
15년 전 조회 1,121
15년 전 조회 1,366
15년 전 조회 1,509
15년 전 조회 1,413
15년 전 조회 2,140
15년 전 조회 1,286
15년 전 조회 1,344
15년 전 조회 891
15년 전 조회 1,000
15년 전 조회 961
15년 전 조회 929
15년 전 조회 878
15년 전 조회 940
15년 전 조회 1,081
15년 전 조회 1,102
15년 전 조회 2,621
15년 전 조회 948
15년 전 조회 1,602
15년 전 조회 1,469
15년 전 조회 1,596
15년 전 조회 1,300
15년 전 조회 1,789
15년 전 조회 605
15년 전 조회 1,096
15년 전 조회 1,062
15년 전 조회 2,856
15년 전 조회 3,173
15년 전 조회 1,847
15년 전 조회 1,352
15년 전 조회 1,973
15년 전 조회 1,475
15년 전 조회 1,080
15년 전 조회 3,776
15년 전 조회 1,419
15년 전 조회 1,514
15년 전 조회 2,742
15년 전 조회 1,439
15년 전 조회 4,166
15년 전 조회 2,379
15년 전 조회 3,156
15년 전 조회 1,772
15년 전 조회 2,001
15년 전 조회 1,303
15년 전 조회 4,381
15년 전 조회 3,957
15년 전 조회 3,782
15년 전 조회 5,197
15년 전 조회 3,420
15년 전 조회 1,800
15년 전 조회 1,760
15년 전 조회 1,904
15년 전 조회 1,598
15년 전 조회 3,998
15년 전 조회 2,910
🐛 버그신고