[TIP] 흐르는 TOP 버튼

· 15년 전 · 1565
흐르는 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,247
15년 전 조회 1,463
15년 전 조회 1,238
15년 전 조회 2,098
15년 전 조회 2,113
15년 전 조회 1,755
15년 전 조회 1,114
15년 전 조회 1,371
15년 전 조회 1,036
15년 전 조회 996
15년 전 조회 1,255
15년 전 조회 2,622
15년 전 조회 2,639
15년 전 조회 1,612
15년 전 조회 1,146
15년 전 조회 1,304
15년 전 조회 1,313
15년 전 조회 1,201
15년 전 조회 1,073
15년 전 조회 1,019
15년 전 조회 1,364
15년 전 조회 1,320
15년 전 조회 1,068
15년 전 조회 1,045
15년 전 조회 1,215
15년 전 조회 1,687
15년 전 조회 1,225
15년 전 조회 1,551
15년 전 조회 1,378
15년 전 조회 2,108
15년 전 조회 3,124
15년 전 조회 2,452
15년 전 조회 1,042
15년 전 조회 2,063
15년 전 조회 2,257
15년 전 조회 1,547
15년 전 조회 1,514
15년 전 조회 2,798
15년 전 조회 2,719
15년 전 조회 5,702
15년 전 조회 1,613
15년 전 조회 4,430
15년 전 조회 1,509
15년 전 조회 1,805
15년 전 조회 1,773
15년 전 조회 1,772
15년 전 조회 1,270
15년 전 조회 1,518
15년 전 조회 1,662
15년 전 조회 1,566
15년 전 조회 2,279
15년 전 조회 1,434
15년 전 조회 1,542
15년 전 조회 1,049
15년 전 조회 1,139
15년 전 조회 1,125
15년 전 조회 1,091
15년 전 조회 1,013
15년 전 조회 1,087
15년 전 조회 1,221
15년 전 조회 1,247
15년 전 조회 2,773
15년 전 조회 1,079
15년 전 조회 1,738
15년 전 조회 1,614
15년 전 조회 1,737
15년 전 조회 1,444
15년 전 조회 1,935
15년 전 조회 760
15년 전 조회 1,227
15년 전 조회 1,201
15년 전 조회 2,996
15년 전 조회 3,357
15년 전 조회 2,025
15년 전 조회 1,488
15년 전 조회 2,108
15년 전 조회 1,607
15년 전 조회 1,227
15년 전 조회 3,911
15년 전 조회 1,551
15년 전 조회 1,653
15년 전 조회 2,924
15년 전 조회 1,619
15년 전 조회 4,316
15년 전 조회 2,507
15년 전 조회 3,283
15년 전 조회 1,914
15년 전 조회 2,152
15년 전 조회 1,439
15년 전 조회 4,510
15년 전 조회 4,143
15년 전 조회 3,948
15년 전 조회 5,337
15년 전 조회 3,579
15년 전 조회 1,942
15년 전 조회 1,883
15년 전 조회 2,029
15년 전 조회 1,734
16년 전 조회 4,161
16년 전 조회 3,053