resizing frames - resizing frames (Posted by jules)

They have: 37 posts

Joined: Oct 1999

I have 3 frames, (1 toc, 1 navigator, 1 main). I would like to have a link in the navigator frame to expand the main frame but also keep the navigator frame up. The main frame may vary in on what url it is pointing to. Also I don't want to lose my place in the main frame when the frame gets expanded. Any suggestions?

They have: 2,390 posts

Joined: Nov 1998

I'm not too clear on what you mean.
Would loading a new 2 col fame set not work?
It could mean you need dHTML actually but I would like to get a better understanding of what you actually want done :0
JP

----------
[red]The Next Step in Website Development [/red] - http://www.what-next.com
The Webmaster Promotion and Resource Center

They have: 5,633 posts

Joined: Jan 1970

Place this script within the <SCRIPT></SCRIPT> tags on your frameset page.

// change numerical values of course
function expandCollapseFrames() {
if (document.body.rows != '50,*,50') {
document.body.rows = '20,*,20';
}
else {
document.body.rows = '50,*,50';
}
}

Use this link from the navigator frame.

<a href="javascript:parent.expandCollapseFrames()">expand/collapse</a>

The script shown above will only work if your frameset uses only rows (not a combo of rows and cols). I hope you can play around with the code to do what you want.

----------
[email protected]
http://go.to/hass

They have: 37 posts

Joined: Oct 1999

Thanks that worked great. Now is there a way to make it collapse back to the original setting by clicking on the button again?

They have: 5,633 posts

Joined: Jan 1970

Yeah that should work by pressing the same button. That is what the IF statement does in the function.

----------
[email protected]
http://go.to/hass - http://connect.to/wpd

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.