[TIP] 흐르는 TOP 버튼

· 15년 전 · 1486
흐르는 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,177
15년 전 조회 1,369
15년 전 조회 1,167
15년 전 조회 2,014
15년 전 조회 2,031
15년 전 조회 1,681
15년 전 조회 1,034
15년 전 조회 1,273
15년 전 조회 971
15년 전 조회 914
15년 전 조회 1,176
15년 전 조회 2,525
15년 전 조회 2,549
15년 전 조회 1,524
15년 전 조회 1,069
15년 전 조회 1,223
15년 전 조회 1,227
15년 전 조회 1,095
15년 전 조회 990
15년 전 조회 927
15년 전 조회 1,287
15년 전 조회 1,237
15년 전 조회 992
15년 전 조회 956
15년 전 조회 1,140
15년 전 조회 1,598
15년 전 조회 1,126
15년 전 조회 1,451
15년 전 조회 1,291
15년 전 조회 1,959
15년 전 조회 3,025
15년 전 조회 2,367
15년 전 조회 965
15년 전 조회 1,974
15년 전 조회 2,165
15년 전 조회 1,462
15년 전 조회 1,427
15년 전 조회 2,691
15년 전 조회 2,584
15년 전 조회 5,576
15년 전 조회 1,535
15년 전 조회 4,302
15년 전 조회 1,430
15년 전 조회 1,726
15년 전 조회 1,694
15년 전 조회 1,689
15년 전 조회 1,187
15년 전 조회 1,436
15년 전 조회 1,562
15년 전 조회 1,487
15년 전 조회 2,202
15년 전 조회 1,346
15년 전 조회 1,415
15년 전 조회 967
15년 전 조회 1,056
15년 전 조회 1,030
15년 전 조회 981
15년 전 조회 932
15년 전 조회 1,001
15년 전 조회 1,144
15년 전 조회 1,158
15년 전 조회 2,689
15년 전 조회 1,010
15년 전 조회 1,663
15년 전 조회 1,529
15년 전 조회 1,660
15년 전 조회 1,361
15년 전 조회 1,858
15년 전 조회 673
15년 전 조회 1,153
15년 전 조회 1,125
15년 전 조회 2,913
15년 전 조회 3,231
15년 전 조회 1,901
15년 전 조회 1,414
15년 전 조회 2,028
15년 전 조회 1,540
15년 전 조회 1,140
15년 전 조회 3,826
15년 전 조회 1,476
15년 전 조회 1,574
15년 전 조회 2,797
15년 전 조회 1,496
15년 전 조회 4,224
15년 전 조회 2,436
15년 전 조회 3,217
15년 전 조회 1,826
15년 전 조회 2,056
15년 전 조회 1,363
15년 전 조회 4,435
15년 전 조회 4,018
15년 전 조회 3,840
15년 전 조회 5,258
15년 전 조회 3,487
15년 전 조회 1,868
15년 전 조회 1,810
15년 전 조회 1,955
15년 전 조회 1,656
15년 전 조회 4,055
15년 전 조회 2,982