[TIP] 흐르는 TOP 버튼

· 15년 전 · 1422
흐르는 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,108
15년 전 조회 1,305
15년 전 조회 1,105
15년 전 조회 1,954
15년 전 조회 1,966
15년 전 조회 1,618
15년 전 조회 975
15년 전 조회 1,214
15년 전 조회 907
15년 전 조회 855
15년 전 조회 1,107
15년 전 조회 2,464
15년 전 조회 2,487
15년 전 조회 1,464
15년 전 조회 1,009
15년 전 조회 1,165
15년 전 조회 1,167
15년 전 조회 1,035
15년 전 조회 933
15년 전 조회 864
15년 전 조회 1,225
15년 전 조회 1,175
15년 전 조회 922
15년 전 조회 898
15년 전 조회 1,070
15년 전 조회 1,537
15년 전 조회 1,066
15년 전 조회 1,394
15년 전 조회 1,232
15년 전 조회 1,907
15년 전 조회 2,968
15년 전 조회 2,302
15년 전 조회 897
15년 전 조회 1,910
15년 전 조회 2,099
15년 전 조회 1,402
15년 전 조회 1,371
15년 전 조회 2,639
15년 전 조회 2,523
15년 전 조회 5,509
15년 전 조회 1,476
15년 전 조회 4,242
15년 전 조회 1,369
15년 전 조회 1,666
15년 전 조회 1,636
15년 전 조회 1,624
15년 전 조회 1,125
15년 전 조회 1,375
15년 전 조회 1,512
15년 전 조회 1,423
15년 전 조회 2,148
15년 전 조회 1,289
15년 전 조회 1,349
15년 전 조회 895
15년 전 조회 1,002
15년 전 조회 970
15년 전 조회 933
15년 전 조회 884
15년 전 조회 944
15년 전 조회 1,085
15년 전 조회 1,104
15년 전 조회 2,625
15년 전 조회 951
15년 전 조회 1,605
15년 전 조회 1,476
15년 전 조회 1,603
15년 전 조회 1,304
15년 전 조회 1,794
15년 전 조회 611
15년 전 조회 1,101
15년 전 조회 1,069
15년 전 조회 2,860
15년 전 조회 3,176
15년 전 조회 1,852
15년 전 조회 1,360
15년 전 조회 1,978
15년 전 조회 1,482
15년 전 조회 1,086
15년 전 조회 3,778
15년 전 조회 1,424
15년 전 조회 1,520
15년 전 조회 2,749
15년 전 조회 1,447
15년 전 조회 4,172
15년 전 조회 2,382
15년 전 조회 3,162
15년 전 조회 1,779
15년 전 조회 2,006
15년 전 조회 1,306
15년 전 조회 4,384
15년 전 조회 3,961
15년 전 조회 3,787
15년 전 조회 5,203
15년 전 조회 3,423
15년 전 조회 1,803
15년 전 조회 1,763
15년 전 조회 1,908
15년 전 조회 1,600
15년 전 조회 4,004
15년 전 조회 2,915