Toby said:
I am part way through writing a frames tutorial, that explains how to
circumvent most of the problems with frames:
Re:
http://examples.tobyinkster.co.uk/frames/frameset.php?page=keep
I always like to explain that the separate frames (or in your terminology,
"layers", the blue bits in your graphic) are in fact separate <insert
operating system> GUI windows that are child windows of the browsers client
window (the red bit, the one that contains the "frameset" page).
This makes it very easy to explain why the nice pretty dropdown menu system
you have created in your top "menu" frame (if you would rotate your image 90
degrees clockwise) do not work, that is the dropdowns seem to disappear
"underneath" the content frame below the menu frame.
They of course disappear because they drop down *outside* the GUI window in
which they live, just as if you ran that menu frame by itself in a browser
window 100 or whatever pixels high.
<aside>
The blue bits don't exactly cover the red bit. The screen real estate in the
vertical gap between the blue bits (in your graphic) is owned by the red
bit. It is the so called frame "border" you can mouse drag. It is not
actualy the frame border, it is maintained and event handled by the window
that contains the frameset, the browsers client window. Much like an MFC
splitter window, if you do MFC that is
I feel this is important because just about everybody talks about "dragging
the frame borders". You aren't. You are actualy dragging the gap between the
frames.
</aside>
Your PHP solution for having a seperate "URL" for each "page" is neat, I
surmise you are using that page parameter to choose the appropriate content
page for the generated frameset.
There is another solution available if server side stuff is not available to
the masses.
Have a seperate frameset for each "page". The menu frame links, and all
other links for that matter, target _top.
True, almost twice as many files but each frameset will refer to the same
menu frame so we get the "one menu page" benefit and we get the unique URL
bit. The frameset pages would naturally be generated by a suitable
pre-processor.
You might have thought of this, AFAICT you stopped typing part way through
this page
Cheers
Richard.