There is a page where I have 5 tables. Each table has same number of columns (about 1000). What i want is that whenever ANY of the table is scrolled (horizontal), all the other tables must follow that.
Here, please note that when the page loads, the first table is scrolled to today’s date column and others follow this. However, when I manually scroll the table, I have to do that again for all the 5 tables. So this creates problem.
Can you people locate me some code OR guide me how I can do this ?
The following script syncs the horizontal scrolling for two separate tables. You can extend the principle to as many tables as you want. The script works in all browsers by applying an onscroll handler to the div surrounding the table. The number of pixels displacement is shown below the bottom table.