[TIP] 흐르는 TOP 버튼

· 15년 전 · 1811
흐르는 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,469
15년 전 조회 1,698
15년 전 조회 1,466
15년 전 조회 2,338
15년 전 조회 2,362
15년 전 조회 1,994
15년 전 조회 1,361
15년 전 조회 1,605
15년 전 조회 1,268
15년 전 조회 1,243
15년 전 조회 1,496
15년 전 조회 2,863
15년 전 조회 2,873
15년 전 조회 1,871
15년 전 조회 1,379
15년 전 조회 1,553
15년 전 조회 1,529
15년 전 조회 1,425
15년 전 조회 1,320
15년 전 조회 1,244
15년 전 조회 1,598
15년 전 조회 1,547
15년 전 조회 1,327
15년 전 조회 1,281
15년 전 조회 1,466
15년 전 조회 1,918
15년 전 조회 1,465
15년 전 조회 1,771
15년 전 조회 1,614
15년 전 조회 2,313
15년 전 조회 3,334
15년 전 조회 2,701
15년 전 조회 1,274
15년 전 조회 2,276
15년 전 조회 2,494
15년 전 조회 1,784
15년 전 조회 1,744
15년 전 조회 3,028
15년 전 조회 2,915
15년 전 조회 5,923
15년 전 조회 1,879
15년 전 조회 4,641
15년 전 조회 1,757
15년 전 조회 2,025
15년 전 조회 2,023
15년 전 조회 2,011
15년 전 조회 1,508
15년 전 조회 1,739
15년 전 조회 1,880
15년 전 조회 1,812
15년 전 조회 2,498
15년 전 조회 1,666
15년 전 조회 1,773
15년 전 조회 1,268
15년 전 조회 1,373
15년 전 조회 1,355
15년 전 조회 1,309
15년 전 조회 1,266
15년 전 조회 1,308
15년 전 조회 1,444
15년 전 조회 1,494
15년 전 조회 2,984
15년 전 조회 1,323
15년 전 조회 1,986
15년 전 조회 1,854
15년 전 조회 1,983
15년 전 조회 1,685
15년 전 조회 2,193
15년 전 조회 993
15년 전 조회 1,467
15년 전 조회 1,442
15년 전 조회 3,223
15년 전 조회 3,583
15년 전 조회 2,259
15년 전 조회 1,737
15년 전 조회 2,340
15년 전 조회 1,832
15년 전 조회 1,455
15년 전 조회 4,144
15년 전 조회 1,803
15년 전 조회 1,881
15년 전 조회 3,144
15년 전 조회 1,838
15년 전 조회 4,531
15년 전 조회 2,744
15년 전 조회 3,520
15년 전 조회 2,149
15년 전 조회 2,382
15년 전 조회 1,677
15년 전 조회 4,733
15년 전 조회 4,368
16년 전 조회 4,171
16년 전 조회 5,572
16년 전 조회 3,807
16년 전 조회 2,167
16년 전 조회 2,130
16년 전 조회 2,262
16년 전 조회 1,967
16년 전 조회 4,384
16년 전 조회 3,306