#滑轮

js鼠标滑轮滚动事件绑定(兼容主流浏览器)

/**Eventhandlerformousewheelevent.*鼠标滚动事件*/varwheel=function(event){vardelta=0;if(!event)/*ForIE.*/event=window.event;if(event.wheelDelta){/*IE/Opera.*/delta=ev...

滚动条响应鼠标滑轮事件实现上下滚动的js代码

   <scripttype="text/javascript">varscrollFunc=function(e){e=e||window.event;if(e.wheelDelta){//IE/Opera/Chromeif(e.wheelDelta==120){//向上滚动...