< Back

Document Subject: Add top scroll bar to table
Hint Short Cut: Add this to your code & documentation to help you find this page.
http://#topscrolbar or http://A555F9/nn.nsf/ByAlias/topscrolbar
Add top scroll bar



<DIV class="wrapper1 printHidden" ><DIV id=dummy class="div1 printhidden" style="WIDTH: 1065px"></DIV></DIV>

<DIV class=wrapper2 ><DIV id=real class=div2>

---table--

</DIV><!-- real --></DIV>

<!-- wrapper 2-->

// call this when table after loaded
$(function() {

$(".wrapper1").scroll(function() {
$(".wrapper2").scrollLeft($(".wrapper1").scrollLeft());
});
$(".wrapper2").scroll(function() {
$(".wrapper1").scrollLeft($(".wrapper2").scrollLeft());
});
});