[TIP] 흐르는 TOP 버튼

· 15년 전 · 1652
흐르는 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,337
15년 전 조회 1,544
15년 전 조회 1,325
15년 전 조회 2,178
15년 전 조회 2,203
15년 전 조회 1,847
15년 전 조회 1,211
15년 전 조회 1,460
15년 전 조회 1,124
15년 전 조회 1,092
15년 전 조회 1,334
15년 전 조회 2,710
15년 전 조회 2,737
15년 전 조회 1,714
15년 전 조회 1,241
15년 전 조회 1,398
15년 전 조회 1,390
15년 전 조회 1,291
15년 전 조회 1,155
15년 전 조회 1,095
15년 전 조회 1,448
15년 전 조회 1,405
15년 전 조회 1,170
15년 전 조회 1,131
15년 전 조회 1,305
15년 전 조회 1,780
15년 전 조회 1,309
15년 전 조회 1,628
15년 전 조회 1,453
15년 전 조회 2,180
15년 전 조회 3,204
15년 전 조회 2,548
15년 전 조회 1,126
15년 전 조회 2,136
15년 전 조회 2,345
15년 전 조회 1,641
15년 전 조회 1,600
15년 전 조회 2,879
15년 전 조회 2,788
15년 전 조회 5,784
15년 전 조회 1,725
15년 전 조회 4,515
15년 전 조회 1,618
15년 전 조회 1,884
15년 전 조회 1,869
15년 전 조회 1,861
15년 전 조회 1,353
15년 전 조회 1,601
15년 전 조회 1,742
15년 전 조회 1,653
15년 전 조회 2,357
15년 전 조회 1,526
15년 전 조회 1,635
15년 전 조회 1,124
15년 전 조회 1,220
15년 전 조회 1,217
15년 전 조회 1,171
15년 전 조회 1,101
15년 전 조회 1,154
15년 전 조회 1,311
15년 전 조회 1,339
15년 전 조회 2,858
15년 전 조회 1,167
15년 전 조회 1,835
15년 전 조회 1,713
15년 전 조회 1,831
15년 전 조회 1,536
15년 전 조회 2,034
15년 전 조회 846
15년 전 조회 1,312
15년 전 조회 1,291
15년 전 조회 3,067
15년 전 조회 3,447
15년 전 조회 2,112
15년 전 조회 1,578
15년 전 조회 2,202
15년 전 조회 1,693
15년 전 조회 1,314
15년 전 조회 3,994
15년 전 조회 1,654
15년 전 조회 1,741
15년 전 조회 3,013
15년 전 조회 1,700
15년 전 조회 4,397
15년 전 조회 2,597
15년 전 조회 3,375
15년 전 조회 2,008
15년 전 조회 2,241
15년 전 조회 1,525
15년 전 조회 4,584
15년 전 조회 4,232
15년 전 조회 4,029
15년 전 조회 5,423
15년 전 조회 3,668
15년 전 조회 2,025
15년 전 조회 1,969
15년 전 조회 2,118
16년 전 조회 1,824
16년 전 조회 4,248
16년 전 조회 3,149