I'm using a simple set-up with a top frame (menu choices) and a bottom frame (contact info)
In between there's a main frame where all the action takes place.
These are static html pages only, no database or application.
The main page itself consists of a text area (most of the page) and some "quick links" on the left hand side.
The quick links more or less the same on all different main pages.
However, the links must scroll together with the main page text.
One solution would be to create a table, putting the quick links in the left column and the text in right (large) column.
But then I would need to include the quick links on all pages.
Instead of repeating the quick links on each and every main page (too much work when the links shall be updated), I was thinking of putting an IFRAME in the right (large) column.
The quick links would then just change the src attribute of the IFRAME.
In effect, it would be like having the quick links in a frame, but still have it scroll together with the main page.
Any input on this?
The only problem so far is that the IFRAME always needs a height.
I cannot get the IFRAME to resize to its contents. I don't have any problems determining a width, but the height must be depending on the content of it, as I do not know how much text there is to display.
I could of course set the IFRAME height to "large enough" but then it will start scrolling if the text doesn't fit. And, of course, the "main page" itself will also scroll with its own scroll-bar, if the IFRAME doesn't fit in the browser window.
Can I get an IFRAME to size to its content (at least the height)?
Otherwise, should I try to dynamically set the IFRAME to the exact pixel height of the main page -- thus, always relying on the scroll-bar in the IFRAME and never using the scroll-bar in the main page itself.