Forum Moderators: open

Message Too Old, No Replies

Internal Links in a Frame but anchored to another Frame

         

rarefate

4:40 am on Apr 26, 2004 (gmt 0)

10+ Year Member



Lets say I have two frames. One which has all the letters A-Z, lets call it menuframe. And the Second is very long, For each letter it has a picture, contentframe. What I need is a link on the menuframe to zip to a section of the contentframe that has been named <a name="F"></a>.

The results should be like if Junior happenly to click on F on the menuframe, the content frame will zip down to the Frog Picture.

Thanks

Rare

Bonusbana

12:05 pm on Apr 26, 2004 (gmt 0)

10+ Year Member



<a href="index.htm#F" target="mainframe">zip to F</a>

rare_fate

2:05 pm on Apr 26, 2004 (gmt 0)

10+ Year Member



Junior doesn't get his frog yet. Code didn't work.

Bonusbana

3:29 pm on Apr 26, 2004 (gmt 0)

10+ Year Member



First, the name attribute is deprecated in xhtml strict 1.0. You might as well use id instead. Second, you should use a div id instead of naming the a tag to make it work cross browser.

Example:

menuframe:

<a href="mainframe.htm#location" target="mainframe">location</a>

mainframe:

<div id="location">
<p>content goes here</p>
</div>