[TIP] 흐르는 TOP 버튼

· 15년 전 · 1413
흐르는 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,302
15년 전 조회 1,101
15년 전 조회 1,952
15년 전 조회 1,961
15년 전 조회 1,613
15년 전 조회 971
15년 전 조회 1,209
15년 전 조회 904
15년 전 조회 850
15년 전 조회 1,102
15년 전 조회 2,460
15년 전 조회 2,480
15년 전 조회 1,455
15년 전 조회 1,005
15년 전 조회 1,162
15년 전 조회 1,159
15년 전 조회 1,031
15년 전 조회 929
15년 전 조회 859
15년 전 조회 1,221
15년 전 조회 1,174
15년 전 조회 920
15년 전 조회 893
15년 전 조회 1,066
15년 전 조회 1,534
15년 전 조회 1,062
15년 전 조회 1,388
15년 전 조회 1,229
15년 전 조회 1,902
15년 전 조회 2,964
15년 전 조회 2,300
15년 전 조회 896
15년 전 조회 1,906
15년 전 조회 2,094
15년 전 조회 1,397
15년 전 조회 1,368
15년 전 조회 2,637
15년 전 조회 2,522
15년 전 조회 5,506
15년 전 조회 1,475
15년 전 조회 4,236
15년 전 조회 1,365
15년 전 조회 1,665
15년 전 조회 1,626
15년 전 조회 1,620
15년 전 조회 1,122
15년 전 조회 1,367
15년 전 조회 1,509
15년 전 조회 1,414
15년 전 조회 2,140
15년 전 조회 1,288
15년 전 조회 1,344
15년 전 조회 892
15년 전 조회 1,001
15년 전 조회 965
15년 전 조회 930
15년 전 조회 878
15년 전 조회 942
15년 전 조회 1,081
15년 전 조회 1,102
15년 전 조회 2,622
15년 전 조회 948
15년 전 조회 1,602
15년 전 조회 1,469
15년 전 조회 1,597
15년 전 조회 1,301
15년 전 조회 1,789
15년 전 조회 605
15년 전 조회 1,096
15년 전 조회 1,062
15년 전 조회 2,858
15년 전 조회 3,173
15년 전 조회 1,848
15년 전 조회 1,355
15년 전 조회 1,973
15년 전 조회 1,478
15년 전 조회 1,080
15년 전 조회 3,777
15년 전 조회 1,420
15년 전 조회 1,516
15년 전 조회 2,743
15년 전 조회 1,440
15년 전 조회 4,168
15년 전 조회 2,380
15년 전 조회 3,157
15년 전 조회 1,774
15년 전 조회 2,002
15년 전 조회 1,305
15년 전 조회 4,381
15년 전 조회 3,958
15년 전 조회 3,783
15년 전 조회 5,200
15년 전 조회 3,421
15년 전 조회 1,801
15년 전 조회 1,760
15년 전 조회 1,905
15년 전 조회 1,598
15년 전 조회 3,998
15년 전 조회 2,911
🐛 버그신고