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
2 Answers
Reset to default 4You need some JS Framework to simply your development and not reinvent the wheel.
Here is examples for Mootools
- http://demos.mootools/CustomEvents
- http://demos111.mootools/Mousewheel
And here for JQuery
- 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条)