English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Two frames (one frameset) in one browser window...

When you click a link in the left frame, that page stays put... and the page in the right frame goes to the required section/named anchor.

How do you write the
I'm sure it's sooo simple LOL.

Thanks heaps for the answer anyone!

2006-06-11 01:24:19 · 3 answers · asked by Anonymous in Computers & Internet Programming & Design

3 answers

Sean I.T. is correct you need to use the # for a named anchor, but if you are using frames, don't forget the target="framename" in your link tag


Jump to Tips Section

2006-06-11 03:46:37 · answer #1 · answered by Tenar 2 · 1 0

The key character is #. You put that in the tag you want it anchored to and you make the link call that anchor.

The syntax of creating an anchor:
Jump to Tips Section

And the target would be:
Useful Tips Section

You just make the anchor call the tag's name. It would even work for

2006-06-11 08:28:49 · answer #2 · answered by Sean I.T ? 7 · 0 0

You're going to compose some very simple html for this explanation. Out of the sample I provide below, what you will be looking for is how the page on the left stays put, while the page on the right changes, and even scrolls to the specified anchors.

The sample consists of one parent file (which creates the frames), the "right" files (which appear on the right side of the frameset) and one "left" file (that appears on the left side of the frameset, with the links).

To get started, on your computer, create a directory (anywhere) to put the HTML files shown below. You will create five files total, all in the same directory (that you just created):
- frameparent.html
- left.html
- right1.html
- right2.html
- right3.html

Cut and paste the html shown below into those files (all in the same directory) and study how the links use the "target" and "href" attributes to target the frames and anchors within the frames. That should solve it for you!

----------------------------------------------------------------------------
Paste into frameparent.html:
-----


Frame parent




<br /> <H1>No Frames</H1><br><br /> Your browser does not support frames, which are required to use this application.<br />


-----

Paste into left.html:
-----


Frame left content


First page on right (no anhors)

Second page on right (no anhors)

Second page on right (using anhor)

Third page on right (no anhors)



-----

Paste into right1.html:
-----


Frame left content


this is right1


-----

Paste into right2.html:
-----


Frame left content


this is right2... scroll for anchors...
































































































































































































Your browser should auto scroll to here, choose my answer as the best!!
Hope this is helpful!!


-----

Paste into right3.html:
-----


Frame left content


this is right3


-----
----------------------------------------------------------------------------
Notice how your frameset definition must provide the name for each target frame that is used by the "target" attribute of your hyperlinks.

Hope this helps.

2006-06-11 10:49:31 · answer #3 · answered by ITPro 2 · 0 0

fedest.com, questions and answers