마우스휠로 스크롤을 움직이지 못하게 막았다 풀 수 있는 예제입니다.
<script language="javascript"> function wheelStop(){ window.execScript("document.onmousewheel = function(){return false;}"); } function wheelMove(){ window.execScript("document.onmousewheel = function(){return true;}"); } </script> <input type="button" value="휠 사용안함" onclick="wheelStop()"> <input type="button" value="휠 사용" onclick="wheelMove()">
방향키(↑↓)나 PageUp/Down 버튼으로는 스크롤이 이동됩니다.
마우스 휠만 제어해요~