[TIP] 흐르는 TOP 버튼

· 15년 전 · 1773
흐르는 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,438
15년 전 조회 1,664
15년 전 조회 1,422
15년 전 조회 2,294
15년 전 조회 2,319
15년 전 조회 1,953
15년 전 조회 1,318
15년 전 조회 1,569
15년 전 조회 1,231
15년 전 조회 1,203
15년 전 조회 1,458
15년 전 조회 2,827
15년 전 조회 2,832
15년 전 조회 1,829
15년 전 조회 1,342
15년 전 조회 1,519
15년 전 조회 1,493
15년 전 조회 1,398
15년 전 조회 1,277
15년 전 조회 1,206
15년 전 조회 1,567
15년 전 조회 1,512
15년 전 조회 1,287
15년 전 조회 1,242
15년 전 조회 1,425
15년 전 조회 1,886
15년 전 조회 1,425
15년 전 조회 1,738
15년 전 조회 1,577
15년 전 조회 2,292
15년 전 조회 3,305
15년 전 조회 2,667
15년 전 조회 1,231
15년 전 조회 2,247
15년 전 조회 2,461
15년 전 조회 1,743
15년 전 조회 1,709
15년 전 조회 2,985
15년 전 조회 2,892
15년 전 조회 5,898
15년 전 조회 1,839
15년 전 조회 4,614
15년 전 조회 1,723
15년 전 조회 1,990
15년 전 조회 1,976
15년 전 조회 1,976
15년 전 조회 1,461
15년 전 조회 1,702
15년 전 조회 1,843
15년 전 조회 1,774
15년 전 조회 2,470
15년 전 조회 1,640
15년 전 조회 1,751
15년 전 조회 1,234
15년 전 조회 1,332
15년 전 조회 1,318
15년 전 조회 1,278
15년 전 조회 1,229
15년 전 조회 1,275
15년 전 조회 1,409
15년 전 조회 1,456
15년 전 조회 2,947
15년 전 조회 1,290
15년 전 조회 1,941
15년 전 조회 1,820
15년 전 조회 1,952
15년 전 조회 1,643
15년 전 조회 2,151
15년 전 조회 956
15년 전 조회 1,422
15년 전 조회 1,409
15년 전 조회 3,184
15년 전 조회 3,552
15년 전 조회 2,232
15년 전 조회 1,691
15년 전 조회 2,305
15년 전 조회 1,795
15년 전 조회 1,420
15년 전 조회 4,113
15년 전 조회 1,772
15년 전 조회 1,835
15년 전 조회 3,124
15년 전 조회 1,814
15년 전 조회 4,507
15년 전 조회 2,711
15년 전 조회 3,484
15년 전 조회 2,114
15년 전 조회 2,343
15년 전 조회 1,641
15년 전 조회 4,699
15년 전 조회 4,331
15년 전 조회 4,144
16년 전 조회 5,538
16년 전 조회 3,762
16년 전 조회 2,136
16년 전 조회 2,078
16년 전 조회 2,229
16년 전 조회 1,923
16년 전 조회 4,354
16년 전 조회 3,259