javascript - Need to prevent user from manually scrolling a web page. (Only navigate using internal links) -
i designing webpage extremely vertical, idea users not scroll around page, when clicked on links internal anchors (href="#somediv"
), page automatically scroll down section.
so elements of page organized bundles, , user clicks go or down 1 section of single page or another.
i've uploaded page following url: dws - prototype
the page straightforward, , using smooth-scroll jquery plugin automatic scrolling. want user not able wander on his/her own.
i have tried using overflow:hidden
, , looked javascript or jquery done, can't seem find viable solution. overflow hidden prevents page loading past screen, can't link other elements of page.
i haven't tested html/css beyond mac os, works fine on safari, firefox , chrome.
you can disable scroll bar on page using following css property
body{overflow: hidden;}
this disable both scroll bar , mousewheel (im not sure pg , down buttons)
Comments
Post a Comment