2
커서 위치를 사용하여 div를 스크롤하는 방법이 있습니까? 자바 스크립트로 만든JQuery - 커서 위치를 사용하여 div 스크롤
데모 : http://scripterlative.com/files/cursordivscroll.htm
감사합니다.
커서 위치를 사용하여 div를 스크롤하는 방법이 있습니까? 자바 스크립트로 만든JQuery - 커서 위치를 사용하여 div 스크롤
데모 : http://scripterlative.com/files/cursordivscroll.htm
감사합니다.
잘하면 jQuery 플러그인 http://flesler.blogspot.com/2007/10/jqueryscrollto.html을 사용하면 모든 것이 가능합니다.
당신이 달성하고자하는 실제 효과를 모르겠어요,하지만 난 잘 상상 해요, 당신은 아마 마우스 위치를 확인보다, 바닥 http://www.fredrikclement.com/#/series/selected/Redbull 예라면에서 이미지 미리보기 슬라이더이 같은 일을 할 그 특정한 div에있을 때. 그런 사용 무언가 : 당신이 제공하고 명확하게 볼 수 있습니다 링크 페이지 하단에 이$('div').mousemove(function(e){
var mouse_x = e.pageX,
mouse_y = e.pageY;
// here goes calculation code where you will decide how much to you want to
// scroll the div, basically plugin works with target, so you might need to create
// reference object with absolute position and change its position before you
// you can scroll
});
스크롤 : * "다운로드 지침 및 소스 코드를"* –