Multiple frames and scrolling?

P

pelakh

I would like to create a document containing two frames, in a vertical
split, as follows
+---------------------------------------------------------------------+
| <Prev> <Next> |
+---------------------------------------------------------------------+
| <Anchor 1> |
| <some text> |
| |
| |
| <Anchor 2> |
| <some text> |
| |
| |
| |
| <Anchor 3> |
| <some text> |
| |
| |
+---------------------------------------------------------------------+

And I need to have the <Prev> and <Next> buttons scroll the bottom
frame to show the previous/next anchor.

Here is the tricky part - I know how to do this when placing the two
frames into separate URLs. What I would like two do is to have it ALL
in a single file, so I can serve it up with one request. Perhaps frames
isn't the right mechanism, and I should be using some sort of embedded
<div>, or <iframe>.

Any help would be greatly appreciated.
 
N

Neredbojias

To further the education of mankind, (e-mail address removed) vouchsafed:
I would like to create a document containing two frames, in a vertical
split,
And I need to have the <Prev> and <Next> buttons scroll the bottom
frame to show the previous/next anchor.

Here is the tricky part - I know how to do this when placing the two
frames into separate URLs. What I would like two do is to have it ALL
in a single file, so I can serve it up with one request. Perhaps frames
isn't the right mechanism, and I should be using some sort of embedded
<div>, or <iframe>.

You'd need javascript to do that. Might want to check at
comp.lang.javascript.
 
R

Roy Schestowitz

__/ [ Neredbojias ] on Wednesday 26 April 2006 13:10 \__

I would like to create a document containing two frames, in a vertical
split, as follows

+---------------------------------------------------------------------+
| <Prev> <Next> |
+---------------------------------------------------------------------+
| <Anchor 1> |
| <some text> |
| |
| |
| <Anchor 2> |
| <some text> |
| |
| |
| |
| <Anchor 3> |
| <some text> |
| |
| |
+---------------------------------------------------------------------+


The top part can be turned into a float (absolute position) without the use
of server side includes, frames, or iframes. See more ideas below.

To further the education of mankind, (e-mail address removed) vouchsafed:


You'd need javascript to do that. Might want to check at
comp.lang.javascript.


An old and deprecated CV of mine < http://schestowitz.com/CV/CV.htm >achieved
something similar. Set your browser to pretend to be Internet Explorer
(please don't ask why) and access the page.

Now, notice the JavaScript function in the source code. It achieves staged
scrolling to the anchors and you could probably embed the buttons in a
float. Use CSS to ensure the buttons always hover on top and are located at
the top

Hope it helps,

Roy
 
J

Jose

I would like to create a document containing two frames, in a vertical
split, as follows
+---------------------------------------------------------------------+
| <Prev> <Next> |
+---------------------------------------------------------------------+
| <Anchor 1> |
| <some text> |
| |
| |
| <Anchor 2> |
| <some text> |
| |
| |
| |
| <Anchor 3> |
| <some text> |
| |
| |
+---------------------------------------------------------------------+

And I need to have the <Prev> and <Next> buttons scroll the bottom
frame to show the previous/next anchor.

How about

+---------------------------------------------------------------------+
| <Anchor 1> |
| <some text> |
| <Prev> <Next>
|
| |
| <Anchor 2> |
| <some text> |
| <Prev> <Next>
|
| |
| |
| <Anchor 3> |
| <some text> |
| <Prev> <Next>
|
| |
+---------------------------------------------------------------------+

Look ma, no frames!

Jose
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,241
Members
46,831
Latest member
RusselWill

Latest Threads

Top