현재 스크롤의 x,y 구하기 1234567891011121314151617function getScrollXY() { var scrOfX = 0, scrOfY = 0; if( typeof( window.pageYOffset ) == 'number' ) { //Netscape compliant scrOfY = window.pageYOffset; scrOfX = window.pageXOffset; } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) { //DOM compliant scrOfY = document.body.scrollTop; scrOfX = document.body.scrollLeft; } else if( document.. 더보기 모바일 가로, 세로 방향 체크 12345678910111213window.onorientationchange = function() { switch(window.orientation) { case 0: jQuery(".mainVisualTxt").animate({top :0}, {duration:350, specialEasing:{top : "easeInOutExpo"}}); break; case -90: jQuery(".mainVisualTxt").animate({top :-50}, {duration:350, specialEasing:{top : "easeInOutExpo"}}); break; case 90: jQuery(".mainVisualTxt").animate({top :-50}, {duration:350, specialEa.. 더보기 자바스크립트 소스 자동 정렬해주는 사이트 http://jsbeautifier.org/ 더보기 이전 1 ··· 25 26 27 28 29 다음