Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 13 of 13

Thread: frames

  1. #1
    New to the CF scene
    Join Date
    Oct 2002
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    frames

    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

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Location
    UK
    Posts
    2,789
    Thanks
    2
    Thanked 14 Times in 14 Posts
    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

  • #3
    New to the CF scene
    Join Date
    Oct 2002
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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*

  • #4
    Senior Coder
    Join Date
    Aug 2002
    Location
    UK
    Posts
    2,789
    Thanks
    2
    Thanked 14 Times in 14 Posts
    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



  • #5
    Senior Coder
    Join Date
    Jul 2002
    Posts
    1,628
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: frames

    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.

  • #6
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,252
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.
    Regards,
    Ronald.
    ronaldvanderwijden.com

  • #7
    New to the CF scene
    Join Date
    Oct 2002
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

  • #8
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,252
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Why frames?!!

    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...).
    Regards,
    Ronald.
    ronaldvanderwijden.com

  • #9
    New to the CF scene
    Join Date
    Oct 2002
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ok...well...i just want the links in one frame and the page in the other.

  • #10
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,252
    Thanks
    0
    Thanked 0 Times in 0 Posts

    2 frames, eh?

    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:
    Code:
    <a href="mypage.html" target="content">
    I hope that helps you along a bit further; if not, do come back here!

    Good luck!
    Regards,
    Ronald.
    ronaldvanderwijden.com

  • #11
    New to the CF scene
    Join Date
    Oct 2002
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    uh...err...that made absolutely no sense...um...i want two frames next to each other...?

  • #12
    PlatinumProject
    Guest
    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

  • #13
    PlatinumProject
    Guest
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •