Click to See Complete Forum and Search --> : one scroll bar operate two frames.
plmoki
07-31-2003, 01:22 PM
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?
thanks a lot for any help.
Khalid Ali
07-31-2003, 08:53 PM
you probably ca write some javascript and move both frames simultaneously...
The script is put in the page loaded into the right frame
<script>
function moveme(){
parent.left.document.body.scrollTop=parent.right.document.body.scrollTop
}
function init(){
document.body.onscroll=moveme
}
</script>
<BODY onload="init()">