The second version of the Scrollable Tables project cleans up deficiencies from the first version, adds accessibility support, and is generally all-round awesome.
If you have ever been frustrated by table headers scrolling off the page of your website, you can use the supplied JavaScript code to take care of the problem for you. Or use it as a tutorial on how to deal with the issue yourself.