$('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.