[TIP] 흐르는 TOP 버튼

· 15년 전 · 1428
흐르는 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,114
15년 전 조회 1,308
15년 전 조회 1,112
15년 전 조회 1,961
15년 전 조회 1,975
15년 전 조회 1,624
15년 전 조회 983
15년 전 조회 1,218
15년 전 조회 915
15년 전 조회 859
15년 전 조회 1,112
15년 전 조회 2,467
15년 전 조회 2,496
15년 전 조회 1,468
15년 전 조회 1,011
15년 전 조회 1,168
15년 전 조회 1,178
15년 전 조회 1,043
15년 전 조회 941
15년 전 조회 869
15년 전 조회 1,232
15년 전 조회 1,182
15년 전 조회 928
15년 전 조회 902
15년 전 조회 1,074
15년 전 조회 1,540
15년 전 조회 1,073
15년 전 조회 1,401
15년 전 조회 1,237
15년 전 조회 1,911
15년 전 조회 2,976
15년 전 조회 2,308
15년 전 조회 903
15년 전 조회 1,917
15년 전 조회 2,103
15년 전 조회 1,406
15년 전 조회 1,379
15년 전 조회 2,646
15년 전 조회 2,532
15년 전 조회 5,517
15년 전 조회 1,484
15년 전 조회 4,244
15년 전 조회 1,378
15년 전 조회 1,673
15년 전 조회 1,640
15년 전 조회 1,629
15년 전 조회 1,128
15년 전 조회 1,379
15년 전 조회 1,517
15년 전 조회 1,429
15년 전 조회 2,151
15년 전 조회 1,293
15년 전 조회 1,351
15년 전 조회 904
15년 전 조회 1,007
15년 전 조회 976
15년 전 조회 938
15년 전 조회 887
15년 전 조회 953
15년 전 조회 1,092
15년 전 조회 1,107
15년 전 조회 2,628
15년 전 조회 957
15년 전 조회 1,608
15년 전 조회 1,481
15년 전 조회 1,608
15년 전 조회 1,308
15년 전 조회 1,800
15년 전 조회 617
15년 전 조회 1,105
15년 전 조회 1,072
15년 전 조회 2,865
15년 전 조회 3,181
15년 전 조회 1,855
15년 전 조회 1,366
15년 전 조회 1,985
15년 전 조회 1,485
15년 전 조회 1,089
15년 전 조회 3,780
15년 전 조회 1,432
15년 전 조회 1,522
15년 전 조회 2,752
15년 전 조회 1,447
15년 전 조회 4,174
15년 전 조회 2,388
15년 전 조회 3,167
15년 전 조회 1,781
15년 전 조회 2,008
15년 전 조회 1,311
15년 전 조회 4,388
15년 전 조회 3,970
15년 전 조회 3,789
15년 전 조회 5,208
15년 전 조회 3,426
15년 전 조회 1,809
15년 전 조회 1,764
15년 전 조회 1,911
15년 전 조회 1,604
15년 전 조회 4,006
15년 전 조회 2,921