[TIP] 흐르는 TOP 버튼

· 15년 전 · 1658
흐르는 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,342
15년 전 조회 1,550
15년 전 조회 1,328
15년 전 조회 2,188
15년 전 조회 2,211
15년 전 조회 1,851
15년 전 조회 1,216
15년 전 조회 1,466
15년 전 조회 1,129
15년 전 조회 1,098
15년 전 조회 1,340
15년 전 조회 2,718
15년 전 조회 2,743
15년 전 조회 1,719
15년 전 조회 1,244
15년 전 조회 1,407
15년 전 조회 1,397
15년 전 조회 1,298
15년 전 조회 1,160
15년 전 조회 1,103
15년 전 조회 1,456
15년 전 조회 1,407
15년 전 조회 1,177
15년 전 조회 1,135
15년 전 조회 1,313
15년 전 조회 1,788
15년 전 조회 1,315
15년 전 조회 1,629
15년 전 조회 1,461
15년 전 조회 2,192
15년 전 조회 3,211
15년 전 조회 2,555
15년 전 조회 1,135
15년 전 조회 2,141
15년 전 조회 2,350
15년 전 조회 1,646
15년 전 조회 1,603
15년 전 조회 2,887
15년 전 조회 2,796
15년 전 조회 5,792
15년 전 조회 1,732
15년 전 조회 4,519
15년 전 조회 1,623
15년 전 조회 1,891
15년 전 조회 1,880
15년 전 조회 1,866
15년 전 조회 1,360
15년 전 조회 1,610
15년 전 조회 1,754
15년 전 조회 1,659
15년 전 조회 2,365
15년 전 조회 1,531
15년 전 조회 1,645
15년 전 조회 1,130
15년 전 조회 1,226
15년 전 조회 1,221
15년 전 조회 1,176
15년 전 조회 1,108
15년 전 조회 1,164
15년 전 조회 1,314
15년 전 조회 1,348
15년 전 조회 2,866
15년 전 조회 1,175
15년 전 조회 1,844
15년 전 조회 1,722
15년 전 조회 1,836
15년 전 조회 1,540
15년 전 조회 2,038
15년 전 조회 851
15년 전 조회 1,316
15년 전 조회 1,302
15년 전 조회 3,072
15년 전 조회 3,454
15년 전 조회 2,125
15년 전 조회 1,582
15년 전 조회 2,208
15년 전 조회 1,696
15년 전 조회 1,320
15년 전 조회 4,003
15년 전 조회 1,659
15년 전 조회 1,747
15년 전 조회 3,022
15년 전 조회 1,710
15년 전 조회 4,402
15년 전 조회 2,602
15년 전 조회 3,377
15년 전 조회 2,012
15년 전 조회 2,248
15년 전 조회 1,531
15년 전 조회 4,590
15년 전 조회 4,242
15년 전 조회 4,035
15년 전 조회 5,428
15년 전 조회 3,672
15년 전 조회 2,033
15년 전 조회 1,977
15년 전 조회 2,120
16년 전 조회 1,829
16년 전 조회 4,253
16년 전 조회 3,155