A little help w/ frames

Discussion in 'HTML & Website Design' started by Kierslee, Aug 18, 2005.

  1. #1
    I'm working on a site w/ frames. It has a top frame, left and main. Several pages have different top and left frames. I want to add links to the bottom of the mainframe of each page to every other page that could show up in a main frame. Here's my question. How do I link from page A's mainframe to page B's mainframe when top and side frames show different content for pages A and B?

    If that doesn't make sense look at www.woodsounds.net, at the bottom of the home page click on the "flute sounds" link. You'll see what I mean.

    If you use the "flutes" link at the top and then click on the green image that says "flute woods" you'll see what it is supposed to look like.

    Thanks for your help.
     
    Kierslee, Aug 18, 2005 IP
  2. J.D.

    J.D. Peon

    Messages:
    1,198
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Flute Woods points to woodsset.html, which is a frameset. Flute Sounds points to a regular document, not a frameset. This is why you don't see the header. If you want a page to appear in some frame, name that frame and use this name in the target attribute. This page will ten appear inside this frame. For example:

    <frameset>
    <frame name="header" src="header.html">
    <frame name="content" src="home.html">
    </frameset>
    ...
    <a href="page2.html" target="content">Page 2</a>


    J.D.
     
    J.D., Aug 18, 2005 IP
  3. Kierslee

    Kierslee Peon

    Messages:
    28
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks, that looks like it'll work. I'll have to give it a go when I get home tonight.

    If I do that will it keep the same top and side that the link was in or will it pick up the new top and side from flutesset.html?
     
    Kierslee, Aug 19, 2005 IP
  4. J.D.

    J.D. Peon

    Messages:
    1,198
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    0
    #4
    When you want to change the top frame (i.e. show new graphics, then the target should be _top and the link should point to a frameset file. If you just want to change the content of some frame, use its name in the target attribute.

    You also make things quite complicated because your noframes contains entire pages.

    J.D.
     
    J.D., Aug 19, 2005 IP
  5. Kierslee

    Kierslee Peon

    Messages:
    28
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanks J.D. I was hoping to be able to link to the new frameset and indicate which page to open in the mainframe. I may have to just settle w/ going to the frameset.

    I've put entire pages in the noframes tag for seo purposes. It's really the only thing I can do since the site owner doesn't want to get rid of the frames.
     
    Kierslee, Aug 19, 2005 IP
  6. J.D.

    J.D. Peon

    Messages:
    1,198
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Depending on how bots handle noframes, you may end up with duplicate content. I'm not saying you will, but if some bots are not smart enough to distinguish regular content and noframes, it may become an issue.

    J.D.
     
    J.D., Aug 19, 2005 IP