[TIP] 흐르는 TOP 버튼

· 15년 전 · 1411
흐르는 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,104
15년 전 조회 1,301
15년 전 조회 1,099
15년 전 조회 1,952
15년 전 조회 1,960
15년 전 조회 1,613
15년 전 조회 967
15년 전 조회 1,206
15년 전 조회 901
15년 전 조회 850
15년 전 조회 1,101
15년 전 조회 2,458
15년 전 조회 2,479
15년 전 조회 1,455
15년 전 조회 1,003
15년 전 조회 1,161
15년 전 조회 1,157
15년 전 조회 1,029
15년 전 조회 929
15년 전 조회 856
15년 전 조회 1,217
15년 전 조회 1,172
15년 전 조회 917
15년 전 조회 892
15년 전 조회 1,064
15년 전 조회 1,531
15년 전 조회 1,061
15년 전 조회 1,386
15년 전 조회 1,227
15년 전 조회 1,901
15년 전 조회 2,961
15년 전 조회 2,297
15년 전 조회 893
15년 전 조회 1,903
15년 전 조회 2,092
15년 전 조회 1,393
15년 전 조회 1,368
15년 전 조회 2,635
15년 전 조회 2,520
15년 전 조회 5,504
15년 전 조회 1,474
15년 전 조회 4,236
15년 전 조회 1,364
15년 전 조회 1,664
15년 전 조회 1,626
15년 전 조회 1,616
15년 전 조회 1,119
15년 전 조회 1,365
15년 전 조회 1,509
15년 전 조회 1,412
15년 전 조회 2,140
15년 전 조회 1,286
15년 전 조회 1,342
15년 전 조회 888
15년 전 조회 999
15년 전 조회 961
15년 전 조회 927
15년 전 조회 876
15년 전 조회 940
15년 전 조회 1,079
15년 전 조회 1,102
15년 전 조회 2,620
15년 전 조회 948
15년 전 조회 1,602
15년 전 조회 1,468
15년 전 조회 1,593
15년 전 조회 1,300
15년 전 조회 1,787
15년 전 조회 605
15년 전 조회 1,096
15년 전 조회 1,062
15년 전 조회 2,855
15년 전 조회 3,171
15년 전 조회 1,846
15년 전 조회 1,351
15년 전 조회 1,972
15년 전 조회 1,474
15년 전 조회 1,077
15년 전 조회 3,775
15년 전 조회 1,418
15년 전 조회 1,512
15년 전 조회 2,742
15년 전 조회 1,439
15년 전 조회 4,164
15년 전 조회 2,377
15년 전 조회 3,155
15년 전 조회 1,772
15년 전 조회 2,000
15년 전 조회 1,301
15년 전 조회 4,379
15년 전 조회 3,957
15년 전 조회 3,782
15년 전 조회 5,197
15년 전 조회 3,419
15년 전 조회 1,799
15년 전 조회 1,760
15년 전 조회 1,901
15년 전 조회 1,598
15년 전 조회 3,998
15년 전 조회 2,909
🐛 버그신고