[TIP] 흐르는 TOP 버튼

· 15년 전 · 1475
흐르는 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,160
15년 전 조회 1,359
15년 전 조회 1,158
15년 전 조회 2,006
15년 전 조회 2,020
15년 전 조회 1,675
15년 전 조회 1,022
15년 전 조회 1,268
15년 전 조회 960
15년 전 조회 899
15년 전 조회 1,164
15년 전 조회 2,515
15년 전 조회 2,539
15년 전 조회 1,516
15년 전 조회 1,062
15년 전 조회 1,213
15년 전 조회 1,216
15년 전 조회 1,081
15년 전 조회 978
15년 전 조회 915
15년 전 조회 1,277
15년 전 조회 1,223
15년 전 조회 976
15년 전 조회 946
15년 전 조회 1,131
15년 전 조회 1,584
15년 전 조회 1,116
15년 전 조회 1,445
15년 전 조회 1,280
15년 전 조회 1,950
15년 전 조회 3,015
15년 전 조회 2,355
15년 전 조회 954
15년 전 조회 1,962
15년 전 조회 2,151
15년 전 조회 1,451
15년 전 조회 1,421
15년 전 조회 2,680
15년 전 조회 2,576
15년 전 조회 5,560
15년 전 조회 1,523
15년 전 조회 4,291
15년 전 조회 1,420
15년 전 조회 1,718
15년 전 조회 1,683
15년 전 조회 1,678
15년 전 조회 1,172
15년 전 조회 1,422
15년 전 조회 1,552
15년 전 조회 1,476
15년 전 조회 2,186
15년 전 조회 1,335
15년 전 조회 1,403
15년 전 조회 952
15년 전 조회 1,053
15년 전 조회 1,018
15년 전 조회 970
15년 전 조회 925
15년 전 조회 987
15년 전 조회 1,134
15년 전 조회 1,151
15년 전 조회 2,675
15년 전 조회 1,001
15년 전 조회 1,655
15년 전 조회 1,523
15년 전 조회 1,648
15년 전 조회 1,348
15년 전 조회 1,850
15년 전 조회 664
15년 전 조회 1,145
15년 전 조회 1,113
15년 전 조회 2,886
15년 전 조회 3,225
15년 전 조회 1,889
15년 전 조회 1,409
15년 전 조회 2,017
15년 전 조회 1,527
15년 전 조회 1,121
15년 전 조회 3,814
15년 전 조회 1,468
15년 전 조회 1,562
15년 전 조회 2,788
15년 전 조회 1,481
15년 전 조회 4,204
15년 전 조회 2,424
15년 전 조회 3,206
15년 전 조회 1,815
15년 전 조회 2,048
15년 전 조회 1,354
15년 전 조회 4,428
15년 전 조회 4,004
15년 전 조회 3,826
15년 전 조회 5,248
15년 전 조회 3,474
15년 전 조회 1,856
15년 전 조회 1,802
15년 전 조회 1,947
15년 전 조회 1,647
15년 전 조회 4,043
15년 전 조회 2,970