[TIP] 흐르는 TOP 버튼

· 15년 전 · 1533
흐르는 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,222
15년 전 조회 1,426
15년 전 조회 1,212
15년 전 조회 2,065
15년 전 조회 2,084
15년 전 조회 1,727
15년 전 조회 1,087
15년 전 조회 1,330
15년 전 조회 1,018
15년 전 조회 965
15년 전 조회 1,222
15년 전 조회 2,586
15년 전 조회 2,607
15년 전 조회 1,582
15년 전 조회 1,111
15년 전 조회 1,276
15년 전 조회 1,278
15년 전 조회 1,157
15년 전 조회 1,040
15년 전 조회 984
15년 전 조회 1,333
15년 전 조회 1,291
15년 전 조회 1,037
15년 전 조회 1,000
15년 전 조회 1,181
15년 전 조회 1,653
15년 전 조회 1,186
15년 전 조회 1,508
15년 전 조회 1,350
15년 전 조회 2,047
15년 전 조회 3,084
15년 전 조회 2,418
15년 전 조회 1,015
15년 전 조회 2,023
15년 전 조회 2,219
15년 전 조회 1,520
15년 전 조회 1,477
15년 전 조회 2,763
15년 전 조회 2,664
15년 전 조회 5,636
15년 전 조회 1,582
15년 전 조회 4,371
15년 전 조회 1,477
15년 전 조회 1,765
15년 전 조회 1,739
15년 전 조회 1,739
15년 전 조회 1,237
15년 전 조회 1,482
15년 전 조회 1,624
15년 전 조회 1,534
15년 전 조회 2,252
15년 전 조회 1,397
15년 전 조회 1,483
15년 전 조회 1,015
15년 전 조회 1,103
15년 전 조회 1,091
15년 전 조회 1,046
15년 전 조회 982
15년 전 조회 1,056
15년 전 조회 1,196
15년 전 조회 1,207
15년 전 조회 2,743
15년 전 조회 1,049
15년 전 조회 1,710
15년 전 조회 1,575
15년 전 조회 1,710
15년 전 조회 1,412
15년 전 조회 1,903
15년 전 조회 715
15년 전 조회 1,202
15년 전 조회 1,175
15년 전 조회 2,963
15년 전 조회 3,299
15년 전 조회 1,967
15년 전 조회 1,461
15년 전 조회 2,074
15년 전 조회 1,588
15년 전 조회 1,188
15년 전 조회 3,885
15년 전 조회 1,519
15년 전 조회 1,615
15년 전 조회 2,868
15년 전 조회 1,559
15년 전 조회 4,276
15년 전 조회 2,480
15년 전 조회 3,257
15년 전 조회 1,880
15년 전 조회 2,115
15년 전 조회 1,403
15년 전 조회 4,483
15년 전 조회 4,089
15년 전 조회 3,903
15년 전 조회 5,304
15년 전 조회 3,533
15년 전 조회 1,910
15년 전 조회 1,856
15년 전 조회 1,996
15년 전 조회 1,709
15년 전 조회 4,107
15년 전 조회 3,023