I have an HTML layout based on tabs (say 5). In each tab I load an iframe. The iframe contents are variations of one another that the user can compare by switching tabs.
I synchronize overflowed div's using code like this:
frame1.onscroll = function(e) { frame2.scrollTop = frame1.scrollTop; frame2.scrollLeft = frame1.scrollLeft; };