Hi !
I have a div (#thelist) that contains a bunch of html tables. When the mousewheel is turned i want the first table to be removed and added to the bottom. (And the other way around if the wheel is turned in the other direction).
For some reason the code below works also from my understanding the list should juts get longer and longer. And since i don't understand why it works this way i can't get it to work the other way around...
Any help ? Thank you!!!
$("#thelist").bind("mousewheel",function(ev, delta)
{
if (delta > 0)
{
var children = $("#thelist").children('table');
var tmpChild = children[0];
children.push(tmpChild);
}
if (delta < 0)
{
// How to do this, btw ?
}
$("#thelist").html(children);
}