Click to See Complete Forum and Search --> : 2 frame scooling


random78
12-08-2003, 11:30 PM
ok, this is amateur time...
I know we shouldn´t use frames, but this is a frame situation:
I have 2 frames in my document, split horizontal.
i wanna be able to, when necessary, scrool both frames, at the same time...like if it was just one page.
can you help me? is there any script that does this?
Thanks

DaveSW
12-09-2003, 10:12 AM
why can't the two frames be one frame?

Mr J
12-13-2003, 11:57 AM
Please try the following.

Place the script in the page that is going to do the scrolling

left and right are the frame names


<script>
<!--
function scrollme(){
parent.left.document.body.scrollLeft=parent.right.document.body.scrollLeft
}
onscroll=scrollme
// -->
</script>