javascript - Sync scrolling of two frames (browser-agnostic, please!) -
I have a web page made of three frames, something like this:
+ - --------------- + | 0 | + ------- + -------- + | | | | 1 | 2 | | | | + ------- + -------- +
frame 1
and 2
to compare For some similar data I want to sync vertical scrollbar on these frames (setting scroll bar values on both sides).
My current approach is frame 0
:
It works fine in Firefox 3.x and Chrome 5.x Not in Internet Explorer 8, though Any ideas?
In IE, I think you need to use
scrollTo
: f2.scrollTo (0, f1_scroll_position);
Comments
Post a Comment