DaddyCOOL
asked on
how to Scroll 2 frames?
I have this site with three frame top, main and left.
and i want the left frame to scroll together with main frame (but only if i scroll the main frame otherwise left frame should be unscrollable). Any ideas?? ooh and i want to scroll up and down.
and i want the left frame to scroll together with main frame (but only if i scroll the main frame otherwise left frame should be unscrollable). Any ideas?? ooh and i want to scroll up and down.
I'm not sure how familiar you are with javascript but that is the only way I know how to do this.
Information is here:
http://www.webreference.com/dhtml/column17/syncStep.html
Take a look and let me know if you need help implementing.
Information is here:
http://www.webreference.com/dhtml/column17/syncStep.html
Take a look and let me know if you need help implementing.
Instead of using conventional frames, you could include different "frames" using the <iframe> tag:
<iframe src="nav.html"></iframe>
It will scroll with the main scrollbar just like a normal page element.
<iframe src="nav.html"></iframe>
It will scroll with the main scrollbar just like a normal page element.
With zshipley's comment, make sure you make the nav frame borders = to 0, and set scrollable to 0 if you do not want it to look like a conventiional frame.
-Steve
-Steve
ASKER
ok tnx but i found another way to do it...
onScroll="parent.leftFrame .scrollTo( 0,document .body.scro llTop)"
onScroll="parent.leftFrame
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Glad I could help. Thanks for the A. :^)
Cd&
Cd&
ASKER
<html>
<head>
<style type="text/css">
a {text-decoration:none}
</style>
</head>