[TIP] 흐르는 TOP 버튼

· 15년 전 · 1459
흐르는 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,138
15년 전 조회 1,344
15년 전 조회 1,139
15년 전 조회 1,991
15년 전 조회 2,006
15년 전 조회 1,656
15년 전 조회 1,014
15년 전 조회 1,247
15년 전 조회 944
15년 전 조회 890
15년 전 조회 1,144
15년 전 조회 2,496
15년 전 조회 2,528
15년 전 조회 1,501
15년 전 조회 1,043
15년 전 조회 1,197
15년 전 조회 1,199
15년 전 조회 1,067
15년 전 조회 967
15년 전 조회 897
15년 전 조회 1,261
15년 전 조회 1,207
15년 전 조회 957
15년 전 조회 933
15년 전 조회 1,112
15년 전 조회 1,567
15년 전 조회 1,101
15년 전 조회 1,429
15년 전 조회 1,264
15년 전 조회 1,938
15년 전 조회 2,998
15년 전 조회 2,337
15년 전 조회 938
15년 전 조회 1,949
15년 전 조회 2,131
15년 전 조회 1,432
15년 전 조회 1,401
15년 전 조회 2,666
15년 전 조회 2,563
15년 전 조회 5,545
15년 전 조회 1,509
15년 전 조회 4,272
15년 전 조회 1,403
15년 전 조회 1,703
15년 전 조회 1,671
15년 전 조회 1,659
15년 전 조회 1,160
15년 전 조회 1,402
15년 전 조회 1,542
15년 전 조회 1,460
15년 전 조회 2,174
15년 전 조회 1,323
15년 전 조회 1,387
15년 전 조회 928
15년 전 조회 1,038
15년 전 조회 1,001
15년 전 조회 960
15년 전 조회 916
15년 전 조회 969
15년 전 조회 1,122
15년 전 조회 1,134
15년 전 조회 2,651
15년 전 조회 985
15년 전 조회 1,640
15년 전 조회 1,509
15년 전 조회 1,637
15년 전 조회 1,333
15년 전 조회 1,826
15년 전 조회 644
15년 전 조회 1,130
15년 전 조회 1,101
15년 전 조회 2,877
15년 전 조회 3,209
15년 전 조회 1,876
15년 전 조회 1,387
15년 전 조회 2,009
15년 전 조회 1,511
15년 전 조회 1,100
15년 전 조회 3,797
15년 전 조회 1,457
15년 전 조회 1,548
15년 전 조회 2,777
15년 전 조회 1,472
15년 전 조회 4,196
15년 전 조회 2,408
15년 전 조회 3,196
15년 전 조회 1,802
15년 전 조회 2,028
15년 전 조회 1,337
15년 전 조회 4,414
15년 전 조회 3,992
15년 전 조회 3,815
15년 전 조회 5,234
15년 전 조회 3,460
15년 전 조회 1,843
15년 전 조회 1,784
15년 전 조회 1,938
15년 전 조회 1,627
15년 전 조회 4,029
15년 전 조회 2,951