In my example i have two iframes open one on the left and one on the right. Both contain a some text (long enough that scrolling is required).
I want to allow two html elements to be linked together with a line. But when i scroll in either of the two iframes i want the line to move appropriately. The line should be drawn on the encapsulating page e.g.
<body>
<div id="content">
<iframe1><div id="element1"></div></iframe1>
<iframe2><div id="element2"></div></iframe2>
<div id="line"></div>
</div>
<body>
so i want the line to connect the element1 with element2 by a line, that follows the element when the frame is scrolled, or when the main page is scrolled. The line can be drawn in the main page like described as long as the dimensions/rotations can be changed when the frames scroll. It is not important to connect the line to the exact element. Connecting to the side of the frame at the Y position of the element is sufficient.
I know that i can draw lines using html divs and rotate transformations. but i'm stuck on having the lines dynamically follow the view of the frame.