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!

Creating a hyperlink that can load a target page to a specific frame?

Status
Not open for further replies.

SockMonkey

IS-IT--Management
Mar 6, 2000
41
US
I have a main web page that uses 2 frames, the top for the navigation bar that is always visible and the bottom frame for the "body".
I am trying to find out how I would create a hyperlink that would correctly point to my website and to a specific page to be loaded in the body frame. This would be a link i would email to someone to view a specific page in my web site

For example: the url would send them to which is the main page and then point to \marketing\monexeciv.htm
to load in the "body" frame.
How can I do this all in one hyperlink?

Any suggestions or recommendations are welcome.
Thanks in advance!

Rob
 
The only recommendation I can suggest is that you create "NEW" separate pages that you can send as url's.

In FP2K select New > Page and then click on the Frames Pages and select the Template for (Horizontal Split) and then select the initial Page for each frame, being the pages you want displayed. Do not put this page in any Navigation Bars or anything, just have it on the site for Links in e-mails and such, if the visitor wants to go to any other pages then all they have to do is click on the links on the "NEW" page you created.

You must, of course save your page, it could be monexeciv-2.htm, displaying the Home Page in the top, and the Page you want in the bottom. So, when you send someone an e-mail with the link, it would look like this:
Let me know if this helps.
 
This is what I found with my page, which used to have frames:

The gateway page (index.htm) should be the overall page, including all frames. That is, you have banner.htm, contents.htm, and index1.htm that make up index.htm. When the user types in the web site address the index.htm will be the one that will automatically load.

But when you do the hyperlinks to the internal pages, you'll need to link them to 1 pages--not to the overall frames page (otherwise you get this really weird effect of having the frames within the frames). For instance, you would link to films1.htm, bio1.htm. On those links, if you have a home link as well, you'd have to do it as index1.htm.

The exception to all this is if you are using hover buttons in your contents frame. If you're using hover buttons, then you have to use the overall frames page (films.htm, bio.htm).

Big tip: After you do all the links, go through all the pages to make sure that they are linked properly.



Linda Adams
Garridon@aol.com
I'm a professional writer, published internationally.
 
Ok even though frontpage does not really support dynamic framesets with a little creativity this can be accomplished. Instead of making a new frames page for each link you create a frame template and then you use the ? to tell it what frame to load in the bottom. confused? dont be i have made a template for your particular site so just copy the following code and save it in a blank web as index.htm. When viewed it will load your home page with the top frame being navbar.htm and the bottom page being the homepage. to send a link it would be page.htm
the question mark will tell it to load the following in the botom frame. I have commented the code for you and included my email if you need help.

***************copy this and save as index.htm*************


<HEAD>

<SCRIPT LANGUAGE=&quot;JavaScript&quot;>

<!-- If you need any additional help with this script please contact me at -->
<!-- taters4you@hotmail.com -->

<!-- Begin
var table_of_contents = &quot;// change to your default frame page (This is the bottom frame if it is on your
// server you can leave off the and just use the root
// ex=homepg1.htm
// This is set to your home page for you now when you create link use this method
// page in the lower frame

// SAVE THIS PAGE AS index.htm

var blank = &quot; &quot;; // blank page
var content = (location.search) ? location.search.substring(1, location.search.length) : table_of_contents;

// if query string ('?' after URL) set content variable to what follows the '?'
// otherwise, start fresh by setting content variable to table_of_contents page

function fillFrame() {
parent.main.location.href = content;
}
// End -->
</script>
<title></title>
</HEAD>


<frameset rows=&quot;100,*&quot; onLoad=&quot;fillFrame();&quot; framespacing=&quot;0&quot; border=&quot;0&quot; frameborder=&quot;0&quot;>
<noframes>

<BODY>


<!-- Script Size: 1.20 KB -->
</noframes>
<frame name=&quot;header&quot; scrolling=&quot;no&quot; noresize src=&quot; <frame name=&quot;main&quot; src=&quot;javascript:parent.blank&quot; scrolling=&quot;auto&quot; noresize>
</frameset>

<!-- Linking: Then use the above format for each contact page link you use -->
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top