Article Introduction: Object-oriented-custom scroll bar, with mouse events, an estimated error is many.
Object-oriented-custom scroll bar, with the mouse event; it's a lot of mistakes.
Object Oriented,oo is the focus of the current computer industry, it is the mainstream of software development method in t
Playing on the Mac habits, the use of Windows mouse really feel awkward, Baidu on the internet a bit, find a way to record here1 Open the Windows Control Panel and click on "Hardware and sound"2 Click "Mouse"3 then click on "Hardware" above4 Select the "Device" one, because I do not know which corresponds to my mouse, so first find a to try, if the following sett
The code is as follows: Original: http://blog.csdn.net/liusaint1992/article/details/51277751Pure Css,div hides the scroll bar and retains the mouse scrolling effect.
To implement the mouse scrolling wheel event:There is one more way:Using the Jquery.mousewheel.js plug-in, personally think this is very useful, similar to jquery encapsulated, to conquer the compatibility of a browser:Use for example the following:1. First import the Jquery.mousewheel.js file2. Add the MouseWheel event to the area you want to use JavaScript scroll bar in response to
Previously seen are with IE zoom, So non IE is not supported, yesterday saw this Js in the mouse wheel event details, so fully compatible (IE6-8, FF, chrome, opera, Safari) the scroll and zoom effect of the mouse is born today.
The default minimum scaling is 50% of the original image.
View results in a new window
The Code is as follows:
/*!
* Author: sohighthe
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.