[TIP] 흐르는 TOP 버튼

· 15년 전 · 1479
흐르는 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,164
15년 전 조회 1,361
15년 전 조회 1,160
15년 전 조회 2,008
15년 전 조회 2,021
15년 전 조회 1,676
15년 전 조회 1,024
15년 전 조회 1,269
15년 전 조회 962
15년 전 조회 903
15년 전 조회 1,165
15년 전 조회 2,518
15년 전 조회 2,541
15년 전 조회 1,518
15년 전 조회 1,064
15년 전 조회 1,218
15년 전 조회 1,218
15년 전 조회 1,082
15년 전 조회 978
15년 전 조회 917
15년 전 조회 1,277
15년 전 조회 1,225
15년 전 조회 979
15년 전 조회 946
15년 전 조회 1,132
15년 전 조회 1,586
15년 전 조회 1,117
15년 전 조회 1,445
15년 전 조회 1,281
15년 전 조회 1,950
15년 전 조회 3,015
15년 전 조회 2,357
15년 전 조회 956
15년 전 조회 1,964
15년 전 조회 2,156
15년 전 조회 1,453
15년 전 조회 1,421
15년 전 조회 2,684
15년 전 조회 2,577
15년 전 조회 5,566
15년 전 조회 1,526
15년 전 조회 4,293
15년 전 조회 1,423
15년 전 조회 1,718
15년 전 조회 1,687
15년 전 조회 1,680
15년 전 조회 1,176
15년 전 조회 1,424
15년 전 조회 1,555
15년 전 조회 1,480
15년 전 조회 2,190
15년 전 조회 1,338
15년 전 조회 1,404
15년 전 조회 956
15년 전 조회 1,053
15년 전 조회 1,021
15년 전 조회 972
15년 전 조회 927
15년 전 조회 990
15년 전 조회 1,136
15년 전 조회 1,153
15년 전 조회 2,681
15년 전 조회 1,001
15년 전 조회 1,657
15년 전 조회 1,524
15년 전 조회 1,651
15년 전 조회 1,351
15년 전 조회 1,852
15년 전 조회 666
15년 전 조회 1,146
15년 전 조회 1,115
15년 전 조회 2,891
15년 전 조회 3,225
15년 전 조회 1,891
15년 전 조회 1,412
15년 전 조회 2,019
15년 전 조회 1,527
15년 전 조회 1,127
15년 전 조회 3,815
15년 전 조회 1,468
15년 전 조회 1,566
15년 전 조회 2,789
15년 전 조회 1,483
15년 전 조회 4,206
15년 전 조회 2,426
15년 전 조회 3,209
15년 전 조회 1,818
15년 전 조회 2,051
15년 전 조회 1,356
15년 전 조회 4,429
15년 전 조회 4,005
15년 전 조회 3,830
15년 전 조회 5,250
15년 전 조회 3,477
15년 전 조회 1,858
15년 전 조회 1,804
15년 전 조회 1,948
15년 전 조회 1,650
15년 전 조회 4,044
15년 전 조회 2,975