Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Frames and actions in other frames

Status
Not open for further replies.

ojf

Instructor
Sep 27, 2000
49
NO
Is it possible to set up a script that makes it possible to have a button in one frame that makes the text scroll to an anchor in another frame?
 
can someone elaborate on this - I have a page that has a link which opens up a framset. I want the link to open a frameset and scroll a document within that frameset to a specific named anchor. I know this is possible, using what is written above but am unsure how to set up the code. How much more water would there be in the ocean if it weren't for sponges?
 
hey,
i'm in the same boat as you
i have pictures in a bottom frame, when you move the mouse over them i'd like info on them to be displayed in the above frame. HEEEEELP!! been workin on this for weeks.

-houston
houstonfour@hotmail.com
 
Yes, it is possible:

1.
<a href=frame2.html#1 TARGET=&quot;another&quot;>link to an anchor in other frame</a>

2.
parent.frames[1].location.href = another.html#1

3.
parent.content.location.hash=1;


The frameset is this:
<FRAMESET>
<FRAME SRC=some.html NAME=&quot;list&quot;>
  <FRAME SRC=another.html NAME=&quot;content&quot;>
</FRAMESET>

And another.html should have an anchor named &quot;1&quot;:
<a name=&quot;1&quot;>

 
i think the way i ended up dealing with this was to do something in javascript like:

<a href=&quot;#&quot; onClick=window.open(&quot;myPage.html#Article3&quot;,&quot;myPage&quot;,&quot;width=700,height=400,scrollbars,resizable&quot;);><img src=&quot;images/igloo.jpg&quot; width=&quot;79&quot; height=&quot;39&quot; border=&quot;0&quot;></a>

i.e. - when you click on the image of the igloo, you open a brand new browser window which contains myPage.html and scrolls right to the third named anchor (#article3) on that page. How much more water would there be in the ocean if it weren't for sponges?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top