...

View Full Version : frames



Sing4theMoment
10-19-2002, 08:47 PM
hey, i know how to make a frame, but i don't know how to make a link in it. i'm using geocities, and my frames just have a yahoo page in them...what do i do? anyone got a code?

-kyle

Mr J
10-19-2002, 09:41 PM
We really could do with a little more information here like.

1) How many frames make up the frameset.

2) What are the names of the frames.

3) Which frame is the links going to be in.

4) Which frame is going to be targeted

5) How many blackbirds in the pie

6) Who ran away with the spoon

7) Why did the chicken cross the road

8) etc. etc

The more information you give us the more chance of you getting a reply

Sing4theMoment
10-20-2002, 04:21 PM
that was confusing, i'm new at this, but here are the answers to the one's that i could answer:

1) How many frames make up the frameset: 1

2) What are the names of the frames: ??

3) Which frame is the links going to be in: uh...1?

4) Which frame is going to be targeted: huh?

5) How many blackbirds in the pie: um...5?

6) Who ran away with the spoon: ooh! i know this one! the dish!

7) Why did the chicken cross the road: to get to the other side *duh*

Mr J
10-20-2002, 09:15 PM
Like it

:)


OK here we go with a few basics.

A frameset consists of a number of frames, this depends on how many frames you want in your frameset.

If you have two frames in your frameset IE, a left frame and a right frame you give the left frame a name and give the right frame a name.

For this example we will call the left frame "Left" and the right frame "Right".
The names can be any of your choosing.

You can place a link in the left frame and target the right frame using a simple link as follows.


<a href="yourpage.htm" target="Right">Link</a>

This will load your page into the right frame.


PS there was 4 and 20 blackbirds baked in the pie


:thumbsup:

cg9com
10-21-2002, 01:59 AM
Originally posted by Sing4theMoment
hey, i know how to make a frame, but i don't know how to make a link in it.

perhaps your going about it in the wrong way, you should have 3 pages the page that the frameset is in, and the 2 ( or however many ) pages that are the frames, this is 3 .html files.

to make a link in it, you would just edit one of the frame files
and also to make it easier instead of typing target="frame" inline every link, you could add <base href="frame"> inside your <head></head> tag if all the links will go to the same place. then any inline targets will go to wherever you want, this will make a default target.

you can also read http://www.htmlgoodies.com/tutors/frame1.html for more frame help. :)

ronaldb66
10-21-2002, 11:52 AM
Kyle,

can you post a link to your site? Taking a look at what's actually there usually helps a great deal in solving any problems.

Sing4theMoment
10-23-2002, 02:27 AM
My Site (http://www.kyleonline.cjb.net)

ronaldb66
10-23-2002, 03:39 PM
Kyle,

why bother with a frameset if you just have a single frame in it? That's pointless, unless it's some attempt to protect your code, which is pointless too.
It would help if you describe what you want to accomplish; maybe someone can give you a much better solution (being really experienced and all, yaddi yadda...).

Sing4theMoment
10-23-2002, 09:59 PM
ok...well...i just want the links in one frame and the page in the other.

ronaldb66
10-24-2002, 10:29 AM
Aha!

So you want two frames! How would you have them arranged, one on top of the other, or one next to the other?
Anywayz: a basic two frame setup consists of three documents:
[list=1]
A frameset document, which contains the frameset: no other content, so no body element!
A normal document which contains the content for the first frame (i.e. your links);
Ditto for the second frame (i.e. the content).
[/list=1]
The trick is to name the frames; when linking to a document, referring to the desired frame by its name using the target attribute will cause the linked document to open in that frame.
By example, if the frame is named "content" (... name="content"...), the mentioned link should look something like:

<a href="mypage.html" target="content">
I hope that helps you along a bit further; if not, do come back here!

Good luck! :thumbsup:

Sing4theMoment
10-26-2002, 12:11 AM
uh...err...that made absolutely no sense...um...i want two frames next to each other...?

PlatinumProject
10-26-2002, 12:49 AM
why didn't you include all this in your frist post here i will give you the code

<html>
<head>
<link rel="stylesheet" href="mmres://user_interface_small.css">
<title>Tilte here</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<frameset cols="175,*" frameborder="NO" border="0" framespacing="0" rows="*">
<frame name="leftFrame" scrolling="NO" noresize src="Put html file here">
<frame name="mainFrame" src="Put html file here">
</frameset>
<noframes><body bgcolor="#FFFFFF" text="#000000">
Yor browser sucks get a new one
</body></noframes>
</html>


Since you don't understand
the name in this case is

leftFame

and

mainFrame

PlatinumProject
10-26-2002, 12:52 AM
and i for got that for the link it would be

<a href="links to place" target="leftFrame">Link</a>

or


<a href="links to place" target="mainFrame">Link</a>

the

leftFrame

is the one on the left and the

mainFrame

is the one on the right

Hope this sheds some light on the topic :thumbsup:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum