[TIP] 흐르는 TOP 버튼

· 15년 전 · 1672
흐르는 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,355
15년 전 조회 1,572
15년 전 조회 1,344
15년 전 조회 2,206
15년 전 조회 2,225
15년 전 조회 1,871
15년 전 조회 1,236
15년 전 조회 1,476
15년 전 조회 1,140
15년 전 조회 1,110
15년 전 조회 1,356
15년 전 조회 2,730
15년 전 조회 2,755
15년 전 조회 1,732
15년 전 조회 1,256
15년 전 조회 1,420
15년 전 조회 1,405
15년 전 조회 1,309
15년 전 조회 1,177
15년 전 조회 1,112
15년 전 조회 1,470
15년 전 조회 1,420
15년 전 조회 1,187
15년 전 조회 1,154
15년 전 조회 1,325
15년 전 조회 1,798
15년 전 조회 1,328
15년 전 조회 1,641
15년 전 조회 1,479
15년 전 조회 2,203
15년 전 조회 3,218
15년 전 조회 2,568
15년 전 조회 1,146
15년 전 조회 2,154
15년 전 조회 2,364
15년 전 조회 1,656
15년 전 조회 1,622
15년 전 조회 2,898
15년 전 조회 2,810
15년 전 조회 5,815
15년 전 조회 1,744
15년 전 조회 4,538
15년 전 조회 1,636
15년 전 조회 1,904
15년 전 조회 1,889
15년 전 조회 1,877
15년 전 조회 1,374
15년 전 조회 1,617
15년 전 조회 1,769
15년 전 조회 1,673
15년 전 조회 2,383
15년 전 조회 1,545
15년 전 조회 1,662
15년 전 조회 1,146
15년 전 조회 1,245
15년 전 조회 1,230
15년 전 조회 1,188
15년 전 조회 1,128
15년 전 조회 1,182
15년 전 조회 1,324
15년 전 조회 1,359
15년 전 조회 2,871
15년 전 조회 1,188
15년 전 조회 1,855
15년 전 조회 1,734
15년 전 조회 1,845
15년 전 조회 1,550
15년 전 조회 2,051
15년 전 조회 863
15년 전 조회 1,328
15년 전 조회 1,311
15년 전 조회 3,085
15년 전 조회 3,468
15년 전 조회 2,142
15년 전 조회 1,599
15년 전 조회 2,217
15년 전 조회 1,708
15년 전 조회 1,335
15년 전 조회 4,020
15년 전 조회 1,676
15년 전 조회 1,761
15년 전 조회 3,036
15년 전 조회 1,725
15년 전 조회 4,415
15년 전 조회 2,619
15년 전 조회 3,391
15년 전 조회 2,027
15년 전 조회 2,259
15년 전 조회 1,544
15년 전 조회 4,604
15년 전 조회 4,258
15년 전 조회 4,055
15년 전 조회 5,441
15년 전 조회 3,682
15년 전 조회 2,045
15년 전 조회 1,991
15년 전 조회 2,129
16년 전 조회 1,842
16년 전 조회 4,274
16년 전 조회 3,169