How to call a function when the user uses the mouse wheel to scroll updown in javascript - Stack Overflow

In HTML I have a table that is used as a grid.Now, I want to attach an event to this table, that when

In HTML I have a table that is used as a grid. Now, I want to attach an event to this table, that when a scroll up/down is triggered, then my ScrollUp/ScrollDown function is called.

In HTML I have a table that is used as a grid. Now, I want to attach an event to this table, that when a scroll up/down is triggered, then my ScrollUp/ScrollDown function is called.

Share Improve this question asked Sep 9, 2010 at 13:07 StavrosStavros 6,14013 gold badges34 silver badges45 bronze badges 3
  • 2 still waiting for a good javascript answer, without using a JS Framework – Stavros Commented Sep 13, 2010 at 7:50
  • I am finally using the MooTools – Stavros Commented Nov 2, 2010 at 11:45
  • google./trends/?q=jquery,mootools So I would go with jQuery :) – Lipis Commented Jun 26, 2012 at 19:41
Add a ment  | 

2 Answers 2

Reset to default 4

You need some JS Framework to simply your development and not reinvent the wheel.

Here is examples for Mootools

  1. http://demos.mootools/CustomEvents
  2. http://demos111.mootools/Mousewheel

And here for JQuery

  1. http://api.jquery./scroll/

If your looking for a cross browser, JavaScript framework independent version then this will do what you need

http://adomas/javascript-mouse-wheel/

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745047071a4608164.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信