Link to home
Start Free TrialLog in
Avatar of DaddyCOOL
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.


Avatar of DaddyCOOL
DaddyCOOL

ASKER

You shoul use Cascading Style sheets, just include the following lines on your site

<html>
<head>


<style type="text/css">
a {text-decoration:none}
</style>



</head>
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.
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.
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
ok tnx but i found another way to do it...
onScroll="parent.leftFrame.scrollTo(0,document.body.scrollTop)"
ASKER CERTIFIED SOLUTION
Avatar of COBOLdinosaur
COBOLdinosaur
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Glad I could help. Thanks for the A. :^)

Cd&