Frameset troubles

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Frameset troubles

Post by JayBird »

Hi,

I am currently building a site and had the idea in my head and everything seemed pretty easy to achieve. That was until i came to do the layout using frames.

Take a look at the image below

Image

The blue area will contain a flash menu.

The white area will contain the site content.

The grey area will contain a small menu that must be visable at all time.

The way i though this would work would be to create 2 framesets.

The first would have just 2 frames, top and bottom, splitting the screen horizontally.

Then, in the top frame, i would load another frameset which has a left and right frame for my flash menu and site content. I though that when the content becomes too long for the right frame, a scrollbar would appear, which would allow the user to scroll down, but making the blue AND white area scroll. But no scroll ever appears (and yes, i have checked the attributes of the frame, and even with scrolling="yes"...nothing).

Anyone any ideas how i can achieve this layout?

It is imperative that the flash menu doesn't reload when swapping tha page content, and also that the grey menu is viewable on screen at ALL times.

Thanks

Mark
ldomingues
Forum Commoner
Posts: 41
Joined: Fri Aug 06, 2004 1:15 pm
Location: Portugal

Post by ldomingues »

Can you post your HTML code?

If you want the bottom menu visible at all times, you MUST use frames.

I'd recomend to create to only two frames (top and bottom). On the top frame, you can create an iframe for the text, which can also have a scrollbar.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

If I understand correctly, you can do this without any frames. Or only 1 frameset.

The flash menu and content can occupy the same frame. Using some scripting, you can load the content in a hidden iframe, and swap out the content once loaded.

there's also the way of using an scripting interval that watches the vertical position of the content frame and scrolls the flash frame to match.. say every 40 milliseconds or so.. (25 updates per second then)
Post Reply