[TIP] 흐르는 TOP 버튼

· 15년 전 · 1510
흐르는 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,205
15년 전 조회 1,404
15년 전 조회 1,197
15년 전 조회 2,049
15년 전 조회 2,061
15년 전 조회 1,710
15년 전 조회 1,069
15년 전 조회 1,311
15년 전 조회 1,004
15년 전 조회 947
15년 전 조회 1,201
15년 전 조회 2,556
15년 전 조회 2,582
15년 전 조회 1,558
15년 전 조회 1,096
15년 전 조회 1,255
15년 전 조회 1,263
15년 전 조회 1,132
15년 전 조회 1,024
15년 전 조회 963
15년 전 조회 1,318
15년 전 조회 1,274
15년 전 조회 1,024
15년 전 조회 987
15년 전 조회 1,164
15년 전 조회 1,637
15년 전 조회 1,162
15년 전 조회 1,492
15년 전 조회 1,332
15년 전 조회 2,000
15년 전 조회 3,061
15년 전 조회 2,399
15년 전 조회 996
15년 전 조회 2,003
15년 전 조회 2,197
15년 전 조회 1,499
15년 전 조회 1,461
15년 전 조회 2,730
15년 전 조회 2,629
15년 전 조회 5,604
15년 전 조회 1,565
15년 전 조회 4,344
15년 전 조회 1,463
15년 전 조회 1,744
15년 전 조회 1,727
15년 전 조회 1,727
15년 전 조회 1,220
15년 전 조회 1,462
15년 전 조회 1,600
15년 전 조회 1,511
15년 전 조회 2,235
15년 전 조회 1,377
15년 전 조회 1,446
15년 전 조회 991
15년 전 조회 1,080
15년 전 조회 1,066
15년 전 조회 1,022
15년 전 조회 968
15년 전 조회 1,036
15년 전 조회 1,177
15년 전 조회 1,188
15년 전 조회 2,719
15년 전 조회 1,027
15년 전 조회 1,694
15년 전 조회 1,554
15년 전 조회 1,694
15년 전 조회 1,389
15년 전 조회 1,886
15년 전 조회 695
15년 전 조회 1,182
15년 전 조회 1,157
15년 전 조회 2,936
15년 전 조회 3,269
15년 전 조회 1,940
15년 전 조회 1,443
15년 전 조회 2,056
15년 전 조회 1,575
15년 전 조회 1,168
15년 전 조회 3,871
15년 전 조회 1,507
15년 전 조회 1,602
15년 전 조회 2,836
15년 전 조회 1,528
15년 전 조회 4,259
15년 전 조회 2,462
15년 전 조회 3,238
15년 전 조회 1,858
15년 전 조회 2,094
15년 전 조회 1,389
15년 전 조회 4,463
15년 전 조회 4,054
15년 전 조회 3,876
15년 전 조회 5,290
15년 전 조회 3,519
15년 전 조회 1,895
15년 전 조회 1,841
15년 전 조회 1,974
15년 전 조회 1,688
15년 전 조회 4,087
15년 전 조회 3,010