Is there a possibility that you only can scroll with the scrollbar in a div and not with the scrollwheel on your mouse?
I prefer that on an one page website.
Is there a possibility that you only can scroll with the scrollbar in a div and not with the scrollwheel on your mouse?
I prefer that on an one page website.
You can use the following code:
function stop() {
return false;
}
document.onmousewheel = stop;
You could easily do a bind on mousewheel scroll and disable it.
$("#menu").bind("mousewheel", function() {
return false;
});
I'd suggest trying to google your question first, as the answer was pretty easy to find, in fact there's another question here