[TIP] 흐르는 TOP 버튼

· 15년 전 · 1420
흐르는 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,106
15년 전 조회 1,302
15년 전 조회 1,104
15년 전 조회 1,953
15년 전 조회 1,966
15년 전 조회 1,616
15년 전 조회 974
15년 전 조회 1,212
15년 전 조회 906
15년 전 조회 853
15년 전 조회 1,104
15년 전 조회 2,462
15년 전 조회 2,484
15년 전 조회 1,460
15년 전 조회 1,007
15년 전 조회 1,163
15년 전 조회 1,164
15년 전 조회 1,033
15년 전 조회 930
15년 전 조회 862
15년 전 조회 1,223
15년 전 조회 1,174
15년 전 조회 922
15년 전 조회 896
15년 전 조회 1,069
15년 전 조회 1,536
15년 전 조회 1,066
15년 전 조회 1,390
15년 전 조회 1,231
15년 전 조회 1,906
15년 전 조회 2,967
15년 전 조회 2,301
15년 전 조회 897
15년 전 조회 1,910
15년 전 조회 2,098
15년 전 조회 1,401
15년 전 조회 1,369
15년 전 조회 2,639
15년 전 조회 2,523
15년 전 조회 5,507
15년 전 조회 1,476
15년 전 조회 4,240
15년 전 조회 1,368
15년 전 조회 1,666
15년 전 조회 1,633
15년 전 조회 1,622
15년 전 조회 1,124
15년 전 조회 1,373
15년 전 조회 1,511
15년 전 조회 1,421
15년 전 조회 2,145
15년 전 조회 1,288
15년 전 조회 1,347
15년 전 조회 894
15년 전 조회 1,001
15년 전 조회 969
15년 전 조회 931
15년 전 조회 882
15년 전 조회 944
15년 전 조회 1,084
15년 전 조회 1,104
15년 전 조회 2,625
15년 전 조회 951
15년 전 조회 1,603
15년 전 조회 1,473
15년 전 조회 1,602
15년 전 조회 1,303
15년 전 조회 1,794
15년 전 조회 610
15년 전 조회 1,101
15년 전 조회 1,067
15년 전 조회 2,860
15년 전 조회 3,175
15년 전 조회 1,852
15년 전 조회 1,358
15년 전 조회 1,976
15년 전 조회 1,480
15년 전 조회 1,085
15년 전 조회 3,777
15년 전 조회 1,423
15년 전 조회 1,519
15년 전 조회 2,748
15년 전 조회 1,446
15년 전 조회 4,171
15년 전 조회 2,381
15년 전 조회 3,161
15년 전 조회 1,778
15년 전 조회 2,005
15년 전 조회 1,305
15년 전 조회 4,383
15년 전 조회 3,960
15년 전 조회 3,785
15년 전 조회 5,201
15년 전 조회 3,423
15년 전 조회 1,802
15년 전 조회 1,762
15년 전 조회 1,906
15년 전 조회 1,600
15년 전 조회 4,002
15년 전 조회 2,914