Solved

Web Authoring question

Posted on 1997-06-05
1
170 Views
Last Modified: 2013-12-25
I am currently designing a website, which uses frames. I use two frames -- one main frame and a frame for links within the site. When you use one of the links, netscape brings up a new window. Is there a way around this? Send your answer to: wblack@ccco.net please!
0
Comment
Question by:sblack
1 Comment
 
LVL 3

Accepted Solution

by:
Hawke earned 100 total points
ID: 1854285
Use this code

<HTML><HEAD>
<TITLE>MY HOMEPAGE
</TITLE></HEAD>
<FRAMESET COLS="20%,80%">
<FRAME SRC="links.html" NAME="INDEX"      SCROLLING="NO" NORESIZE>
<FRAME SRC="main.html" NAME="PAGE"      SCROLLING="AUTO" NORESIZE>
</FRAMESET>
</HTML>

Now let me explain to you the code.

FRAMESET is just the standard frame tag.
COLS just says that you want vertical frames.
ROWS would suggest that you want horizontal frames.
The percentage amount is the fraction of the screen you would like your frames to appear. Make sure that they total 100%.
SRC is the name of the file that you want to appear in a particular frame. The first filename will put that file in the first frame (the 20% one) while the second filename will put the file in the second frame (the 80% one).
NAME is the name of the frame where you want your file to appear.
SCROLLING allows for scrolling if your page is larger than the frame. The options are "NO" or "AUTO".
RESIZE allow a user to manually resize the frame to his/her convinience.

Now for the files. I'm assuming that you want your links frame to stay while the user browses the rest of your pages. In order for your main page to stay within the frame, and not pop up on a new window like it is now, the links in your links.html file will have to be targeted to that frame.
Ex.
<A HREF="nextpage.html" TARGET="page">

If you want to replace your links frame with another file, the link to that file would have to be targeted to that frame.
Ex.
<A HREF="newlinks.html" TARGET="links">

If you want to break out of frames, just TARGET="_top".
If you want to open a new window, TARGET="top".

I hope this helps.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
This video teaches users how to migrate an existing Wordpress website to a new domain.

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question