js代码
<script src="js/jquery.min.js"></script> <script src="js/mousescroll.js"></script> <script type="text/javascript"> // 在这里修改id,和速度 $(function(){ var api1 = new myApi(); api1.mouseScroll.inte($('#scrolllayout'),10); var api2 = new myApi(); api2.mouseScroll.inte($('#div1'),10); }); </script>