$('body').mousewheel(function(event, delta) {
var left=$(window). scrollLeft();
$(window). scrollLeft(left-(delta * 100))
event.preventDefault();
})
jquery code to implement horizontal scrolling of web pages requires mousewheel.js. Simply put, it is to set the scrollLeft value of the window. The window must not be the body, otherwise there will be problems with scrolling. Very puzzled. The bound event mousewhell must also be on the body, which is not supported in IE8 or lower windows.
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn