[TIP] 흐르는 TOP 버튼

· 15년 전 · 1468
흐르는 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,150
15년 전 조회 1,350
15년 전 조회 1,149
15년 전 조회 2,000
15년 전 조회 2,015
15년 전 조회 1,668
15년 전 조회 1,020
15년 전 조회 1,258
15년 전 조회 954
15년 전 조회 895
15년 전 조회 1,156
15년 전 조회 2,510
15년 전 조회 2,535
15년 전 조회 1,514
15년 전 조회 1,056
15년 전 조회 1,206
15년 전 조회 1,210
15년 전 조회 1,075
15년 전 조회 973
15년 전 조회 909
15년 전 조회 1,270
15년 전 조회 1,219
15년 전 조회 969
15년 전 조회 937
15년 전 조회 1,123
15년 전 조회 1,576
15년 전 조회 1,109
15년 전 조회 1,438
15년 전 조회 1,276
15년 전 조회 1,946
15년 전 조회 3,009
15년 전 조회 2,349
15년 전 조회 947
15년 전 조회 1,958
15년 전 조회 2,140
15년 전 조회 1,443
15년 전 조회 1,414
15년 전 조회 2,678
15년 전 조회 2,568
15년 전 조회 5,553
15년 전 조회 1,519
15년 전 조회 4,286
15년 전 조회 1,415
15년 전 조회 1,712
15년 전 조회 1,677
15년 전 조회 1,672
15년 전 조회 1,169
15년 전 조회 1,413
15년 전 조회 1,550
15년 전 조회 1,469
15년 전 조회 2,180
15년 전 조회 1,333
15년 전 조회 1,395
15년 전 조회 944
15년 전 조회 1,044
15년 전 조회 1,009
15년 전 조회 967
15년 전 조회 922
15년 전 조회 982
15년 전 조회 1,131
15년 전 조회 1,143
15년 전 조회 2,662
15년 전 조회 995
15년 전 조회 1,646
15년 전 조회 1,519
15년 전 조회 1,643
15년 전 조회 1,339
15년 전 조회 1,840
15년 전 조회 654
15년 전 조회 1,140
15년 전 조회 1,111
15년 전 조회 2,882
15년 전 조회 3,220
15년 전 조회 1,884
15년 전 조회 1,402
15년 전 조회 2,013
15년 전 조회 1,521
15년 전 조회 1,114
15년 전 조회 3,809
15년 전 조회 1,464
15년 전 조회 1,557
15년 전 조회 2,784
15년 전 조회 1,476
15년 전 조회 4,202
15년 전 조회 2,416
15년 전 조회 3,203
15년 전 조회 1,810
15년 전 조회 2,037
15년 전 조회 1,348
15년 전 조회 4,423
15년 전 조회 3,998
15년 전 조회 3,822
15년 전 조회 5,245
15년 전 조회 3,469
15년 전 조회 1,853
15년 전 조회 1,797
15년 전 조회 1,944
15년 전 조회 1,637
15년 전 조회 4,035
15년 전 조회 2,960