How do i make frames scroll with a web page?

They have: 36 posts

Joined: Nov 2006

I'm remaking my site but this this time with frames (i know i know why I'm i remaking a web page that worked seemlessly, now with frames. don't give me a lecture on who frames a rubbish Sticking out tongue )

i want the entire thing to act like it was 1 html page and not 3 frames joint together. I know how to make the individual frame content scroll, but i want the whole site to scroll up when i scroll. Any idea if this is possible?
Basically i don't want it to look like i am using frames, i have a sidebar, top bar and main page area. So when my main area has information on it that goes below the screen i want to scroll down and have the top bar disappear so i can use more of the screen.
cheers, hope that wasn't too confusing.

VISTA = Virus Infected System Totally Assed

Abhishek Reddy's picture

He has: 3,348 posts

Joined: Jul 2001

daveclose;211174 wrote: I'm remaking my site but this this time with frames (i know i know why I'm i remaking a web page that worked seemlessly, now with frames. don't give me a lecture on who frames a rubbish Sticking out tongue )

I won't say frames are rubbish, because I'm sure there are arguably some appropriate uses for them. However...

daveclose;211174 wrote: i want the entire thing to act like it was 1 html page and not 3 frames joint together [. . .]
Basically i don't want it to look like i am using frames

So why use frames? Confused It sounds like a misuse of frames (I'm not saying they're bad).

Whatever you're trying to achieve with this setup, are you sure it's impossible with any approach?

They have: 36 posts

Joined: Nov 2006

I what to frames so i can easily update the menu on all pages at the same time.
but i what the hole page to scroll as one

Megan's picture

She has: 11,421 posts

Joined: Jun 1999

You don't need to use frames to keep your menu separate. You can use includes which will automatically include a page within another page. Didn't you ever wonder how other websites keep their menus consistent across the whole site? This is what they use. You can use Server Side Includes or PHP includes (which would require PHp to be enabled on your sever). PHP is a little easer IMO, and comes with the ability to add a lot of other fucntionality if/when you want to. Other server side languages have similar functionality, so you could use whatever is avaialble on your hosting account.

Greg K's picture

He has: 2,145 posts

Joined: Nov 2003

Ok, just cover all the bases here, here are the ways I would do it in the order of how I would prefer to do it.

1. Use PHP or ASP to include the menu into each page, this way everything is done on the serverside, and the user settings (disabling javascript) won't affect it.

2. Use something like Dreamweaver (IMO this doesn't include front page although it might be able to do it LOL) to create a template system, then when you update the menu on the main template, it will automatically go look for any file using the template and update it.

3. To do what you are actually asking, you would need to rely on javascript, so why not just put the code for the menu into a javascript file and have every page just call that javascript file?

-Greg

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.