[TIP] 흐르는 TOP 버튼

· 15년 전 · 1435
흐르는 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,118
15년 전 조회 1,322
15년 전 조회 1,123
15년 전 조회 1,970
15년 전 조회 1,982
15년 전 조회 1,633
15년 전 조회 994
15년 전 조회 1,222
15년 전 조회 922
15년 전 조회 865
15년 전 조회 1,122
15년 전 조회 2,475
15년 전 조회 2,507
15년 전 조회 1,480
15년 전 조회 1,021
15년 전 조회 1,176
15년 전 조회 1,185
15년 전 조회 1,047
15년 전 조회 949
15년 전 조회 876
15년 전 조회 1,239
15년 전 조회 1,189
15년 전 조회 934
15년 전 조회 914
15년 전 조회 1,086
15년 전 조회 1,546
15년 전 조회 1,082
15년 전 조회 1,407
15년 전 조회 1,247
15년 전 조회 1,916
15년 전 조회 2,983
15년 전 조회 2,314
15년 전 조회 913
15년 전 조회 1,923
15년 전 조회 2,108
15년 전 조회 1,412
15년 전 조회 1,384
15년 전 조회 2,652
15년 전 조회 2,540
15년 전 조회 5,521
15년 전 조회 1,492
15년 전 조회 4,251
15년 전 조회 1,383
15년 전 조회 1,684
15년 전 조회 1,647
15년 전 조회 1,634
15년 전 조회 1,134
15년 전 조회 1,387
15년 전 조회 1,522
15년 전 조회 1,436
15년 전 조회 2,156
15년 전 조회 1,300
15년 전 조회 1,360
15년 전 조회 912
15년 전 조회 1,014
15년 전 조회 985
15년 전 조회 944
15년 전 조회 893
15년 전 조회 957
15년 전 조회 1,099
15년 전 조회 1,111
15년 전 조회 2,636
15년 전 조회 963
15년 전 조회 1,616
15년 전 조회 1,488
15년 전 조회 1,614
15년 전 조회 1,312
15년 전 조회 1,806
15년 전 조회 623
15년 전 조회 1,114
15년 전 조회 1,077
15년 전 조회 2,866
15년 전 조회 3,187
15년 전 조회 1,861
15년 전 조회 1,371
15년 전 조회 1,989
15년 전 조회 1,492
15년 전 조회 1,090
15년 전 조회 3,787
15년 전 조회 1,437
15년 전 조회 1,526
15년 전 조회 2,757
15년 전 조회 1,450
15년 전 조회 4,181
15년 전 조회 2,390
15년 전 조회 3,174
15년 전 조회 1,785
15년 전 조회 2,014
15년 전 조회 1,314
15년 전 조회 4,398
15년 전 조회 3,975
15년 전 조회 3,793
15년 전 조회 5,214
15년 전 조회 3,430
15년 전 조회 1,817
15년 전 조회 1,771
15년 전 조회 1,921
15년 전 조회 1,608
15년 전 조회 4,009
15년 전 조회 2,927