[TIP] 흐르는 TOP 버튼

· 15년 전 · 1453
흐르는 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,131
15년 전 조회 1,336
15년 전 조회 1,133
15년 전 조회 1,987
15년 전 조회 1,998
15년 전 조회 1,647
15년 전 조회 1,009
15년 전 조회 1,237
15년 전 조회 936
15년 전 조회 883
15년 전 조회 1,140
15년 전 조회 2,486
15년 전 조회 2,520
15년 전 조회 1,498
15년 전 조회 1,032
15년 전 조회 1,189
15년 전 조회 1,190
15년 전 조회 1,061
15년 전 조회 961
15년 전 조회 888
15년 전 조회 1,249
15년 전 조회 1,198
15년 전 조회 948
15년 전 조회 926
15년 전 조회 1,105
15년 전 조회 1,561
15년 전 조회 1,094
15년 전 조회 1,421
15년 전 조회 1,258
15년 전 조회 1,929
15년 전 조회 2,993
15년 전 조회 2,331
15년 전 조회 931
15년 전 조회 1,940
15년 전 조회 2,120
15년 전 조회 1,424
15년 전 조회 1,395
15년 전 조회 2,662
15년 전 조회 2,554
15년 전 조회 5,535
15년 전 조회 1,502
15년 전 조회 4,265
15년 전 조회 1,394
15년 전 조회 1,697
15년 전 조회 1,659
15년 전 조회 1,650
15년 전 조회 1,152
15년 전 조회 1,397
15년 전 조회 1,535
15년 전 조회 1,454
15년 전 조회 2,167
15년 전 조회 1,317
15년 전 조회 1,377
15년 전 조회 924
15년 전 조회 1,028
15년 전 조회 998
15년 전 조회 953
15년 전 조회 908
15년 전 조회 965
15년 전 조회 1,114
15년 전 조회 1,124
15년 전 조회 2,648
15년 전 조회 976
15년 전 조회 1,636
15년 전 조회 1,501
15년 전 조회 1,626
15년 전 조회 1,327
15년 전 조회 1,818
15년 전 조회 635
15년 전 조회 1,125
15년 전 조회 1,095
15년 전 조회 2,873
15년 전 조회 3,203
15년 전 조회 1,872
15년 전 조회 1,383
15년 전 조회 1,999
15년 전 조회 1,504
15년 전 조회 1,095
15년 전 조회 3,794
15년 전 조회 1,450
15년 전 조회 1,542
15년 전 조회 2,775
15년 전 조회 1,465
15년 전 조회 4,193
15년 전 조회 2,402
15년 전 조회 3,189
15년 전 조회 1,793
15년 전 조회 2,024
15년 전 조회 1,327
15년 전 조회 4,405
15년 전 조회 3,984
15년 전 조회 3,810
15년 전 조회 5,228
15년 전 조회 3,449
15년 전 조회 1,833
15년 전 조회 1,781
15년 전 조회 1,933
15년 전 조회 1,620
15년 전 조회 4,022
15년 전 조회 2,945