one scroll bar operate two frames.

liunx

Guest
i have a basic frame set up, (the left frame contains the links that change the frame on the right), i don't want to have a scroll bar for each of the frames cuzz it looks ugly... is there a way to have one scrollbar on the right that scrolls the whole screen as if the two frames were linked?<br />
<br />
thanks a lot for any help.<!--content-->you probably ca write some javascript and move both frames simultaneously...<!--content-->The script is put in the page loaded into the right frame<br />
<br />
<script><br />
function moveme(){<br />
parent.left.document.body.scrollTop=parent.right.document.body.scrollTop<br />
}<br />
<br />
function init(){<br />
document.body.onscroll=moveme<br />
}<br />
<br />
</script><br />
<br />
<BODY onload="init()"><!--content-->
 
Back
Top