SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Evangelist sp0om's Avatar
    Join Date
    Feb 2004
    Location
    MN
    Posts
    408
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question about frames

    Hi

    I have a small site project, and one thing I want to add is a top navigation frame.

    Code:
    |---------------------|
    |      Nav Frame      |
    |---------------------|
    |                     |
    |                     |
    |                     |
    |      Load links     |
    | from nav frame      |
    |           here      |
    |                     |
    |---------------------|
    So my question is, how can I make the stuff that's clicked on on top, show up on the bottom frame.

    I'd appreciate any help. Thanks.

  2. #2
    He's No Good To Me Dead silver trophybronze trophy stymiee's Avatar
    Join Date
    Feb 2003
    Location
    Slave I
    Posts
    23,423
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)
    Give the larger frame a name like "large" and this make your links with the target attribute like this:

    <FRAMESET ROWS="100,*">
    <FRAME NAME="links" SRC="page1.htm">
    <FRAME NAME="large" SRC="page2.htm">
    </FRAMESET>

    <a href="start.htm" target="large">

    This will have pages open in the large frame.

  3. #3
    SitePoint Evangelist sp0om's Avatar
    Join Date
    Feb 2004
    Location
    MN
    Posts
    408
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is it possible to have the frame src set to php files, or do they have to be html?

  4. #4
    SitePoint Evangelist Maujor's Avatar
    Join Date
    Mar 2005
    Location
    Rio de Janeiro - Brazil - South America
    Posts
    409
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by sp0om
    Is it possible to have the frame src set to php files, or do they have to be html?
    You can set any valide extension such as: php, asp, htm, html, cfm, etc.
    Mauricio Samy Silva
    http://www.maujor.com/

  5. #5
    SitePoint Addict Jamieharrop's Avatar
    Join Date
    Mar 2005
    Location
    West Yorkshire, UK
    Posts
    210
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    sp0om,

    I strongly advise you do not use frames. There are many flaws to frames, the links below discuss their problems.

    http://www.htmlhelp.com/faq/html/fra...frame-problems
    http://www.htmlhelp.com/faq/html/fra...l#frame-search
    Regards,
    Jamie Harrop

  6. #6
    SitePoint Evangelist sputza's Avatar
    Join Date
    Jan 2002
    Location
    Canada
    Posts
    528
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Frames are evil! To add to Jamieharrops links:
    http://karlcore.com/articles/article.php?id=2
    Steven Watkins
    Chief Web Ninja
    Code Monkey Interactive
    lowgravity.ca


Bookmarks

Posting Permissions

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