[제나플러스] 퀵 스크롤 소스2
본문
<!--RIGHT SCROLL BANNER-->
<!--http://www.blueb.co.kr/-->
<SCRIPT language=JavaScript1.2>
function MM_showHideLayers2() { //v3.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
obj.visibility=v; }
}
self.onError=null;
currentX = currentY = 0;
whichIt = null;
lastScrollX = 0; lastScrollY = -10;
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.banner.style.pixelTop += percent;
if(NS) document.banner.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.banner.style.pixelLeft += percent;
if(NS) document.banner.top += percent;
lastScrollY = lastScrollY + percent;
}
}
if(NS || IE) action = window.setInterval("heartBeat()",1);
</script>
<div id="banner" style="position:relative; z-index:50; left:0px;" right:0px;">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td><?=latest_banner("banner_right","rightbanner", 5, 1); ?></td>
</tr>
</table>
</div>
<!--/RIGHT SCROLL BANNER-->
관련링크
- http://www.blueb.co.kr/ 1725회 연결
힘쓰님의 댓글
힘쓰쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 작성일미리보기 이미지나 적용된 곳의 링크는 없나요? 궁금하네요..