HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Targeting anchor's in frames from another frame
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Frame
View previous topic :: View next topic  
Author Message
grcci



Joined: 09 Jan 2008
Posts: 2

PostPosted: Mon Jan 21, 2008 9:05 pm     Targeting anchor's in frames from another frame Reply with quote

Hey, great site. Love it.

He's one for you, I'm new to alot of HTML but I have programed in a couple of other languages before. BASIC 'n' Turbo Pascal (Similar to C+)

Ok I have a framed site that has 5 frames. four frames with one frame having another frame inside it.

<FRAME NORESIZE>
<FRAMESET ROWS="*" COLS="*">

<Frameset COLS="20%,*" rows="30%, *">
<FRAME SRC="SET1.HTM" NORESIZE MARGINWIDTH=0 MARGINHEIGHT=0 NAME=GRCCI SCROLLING=NO>
<FRAME SRC="SET2.HTM" NORESIZE MARGINWIDTH=0 MARGINHEIGHT=0 NAME=HEADER SCROLLING=NO>
<FRAME SRC="SET3.HTM" NORESIZE MARGINWIDTH=5 MARGINHEIGHT=5 NAME=SIDEBAR>

<FRAMESET col="*" rows="*,8%">
<FRAME SRC="SETX.HTM" MARGINWIDTH=1 MARGINHEIGHT=1 NAME=MAIN SCROLLING=YES>
<FRAME SRC="SET6.HTM" NO RESIZE MARGINWIDTH=1 MARGINEHEIGHT=1 NAME=FOOTER SCROLLING=NO>
</frameset>
</FRAMESET>
<NOFRAMES>NOFRAMES stuff
</NOFRAMES>
</FRAMESET>
</FRAME>


In frame footer I have a link
called TOP OF PAGE
When clicked I want the CURRENT page that is being displayed in the Main frame to return to the top of the page. <a name="top">

I want to know how to target name anchors in another frame
grcci



Joined: 09 Jan 2008
Posts: 2

PostPosted: Tue Jan 22, 2008 4:22 pm     STEP 2 Reply with quote

Well no help as of yet but I have figured out how to target an anchor in another frame

<a href="source.htm#top">top of page</A>

but how do you get the href to automatically find out which htm page is currently being displayed so that if a different page is being displayed like current.htm it know to put current.htm in front of the #top tag???

Is there even a way?
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Frame All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Webmaster Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial