[TIP] 흐르는 TOP 버튼

· 15년 전 · 1409
흐르는 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,101
15년 전 조회 1,296
15년 전 조회 1,097
15년 전 조회 1,951
15년 전 조회 1,959
15년 전 조회 1,610
15년 전 조회 965
15년 전 조회 1,204
15년 전 조회 899
15년 전 조회 848
15년 전 조회 1,099
15년 전 조회 2,455
15년 전 조회 2,477
15년 전 조회 1,451
15년 전 조회 1,002
15년 전 조회 1,158
15년 전 조회 1,155
15년 전 조회 1,027
15년 전 조회 926
15년 전 조회 855
15년 전 조회 1,216
15년 전 조회 1,170
15년 전 조회 916
15년 전 조회 888
15년 전 조회 1,062
15년 전 조회 1,529
15년 전 조회 1,057
15년 전 조회 1,384
15년 전 조회 1,226
15년 전 조회 1,900
15년 전 조회 2,960
15년 전 조회 2,296
15년 전 조회 891
15년 전 조회 1,902
15년 전 조회 2,089
15년 전 조회 1,391
15년 전 조회 1,365
15년 전 조회 2,633
15년 전 조회 2,516
15년 전 조회 5,503
15년 전 조회 1,472
15년 전 조회 4,235
15년 전 조회 1,364
15년 전 조회 1,662
15년 전 조회 1,626
15년 전 조회 1,614
15년 전 조회 1,119
15년 전 조회 1,363
15년 전 조회 1,507
15년 전 조회 1,410
15년 전 조회 2,138
15년 전 조회 1,283
15년 전 조회 1,342
15년 전 조회 886
15년 전 조회 998
15년 전 조회 960
15년 전 조회 924
15년 전 조회 873
15년 전 조회 937
15년 전 조회 1,078
15년 전 조회 1,100
15년 전 조회 2,620
15년 전 조회 947
15년 전 조회 1,601
15년 전 조회 1,467
15년 전 조회 1,591
15년 전 조회 1,299
15년 전 조회 1,786
15년 전 조회 605
15년 전 조회 1,093
15년 전 조회 1,061
15년 전 조회 2,852
15년 전 조회 3,171
15년 전 조회 1,844
15년 전 조회 1,351
15년 전 조회 1,968
15년 전 조회 1,473
15년 전 조회 1,077
15년 전 조회 3,772
15년 전 조회 1,413
15년 전 조회 1,510
15년 전 조회 2,742
15년 전 조회 1,436
15년 전 조회 4,161
15년 전 조회 2,375
15년 전 조회 3,153
15년 전 조회 1,769
15년 전 조회 1,999
15년 전 조회 1,301
15년 전 조회 4,376
15년 전 조회 3,956
15년 전 조회 3,779
15년 전 조회 5,195
15년 전 조회 3,416
15년 전 조회 1,795
15년 전 조회 1,758
15년 전 조회 1,901
15년 전 조회 1,596
15년 전 조회 3,997
15년 전 조회 2,908
🐛 버그신고