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 8 of 8
  1. #1
    New Coder
    Join Date
    Sep 2004
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Help With Frames

    Hey all, I'm working on a new website using frames. Usually I just make a template and just change the content on every page, but it's become too hard to modify my website so I decided to switch to frames. I've been working on it for the past 3 days, I've got all the coding right on the other pages, but my index page is showing up miscorrectly. Here's my index code:

    Code:
    <html>
    
    <head>
    <title>Rob's World</title>
    </head>
    <frameset framespacing="0" border="0" frameborder="0" rows="130,*,20">
      <frame name="top" scrolling="no" noresize target="contents" src="header.html" marginwidth="0" style="float: center">
    </frameset>
    <frameset cols="190,*, 225">
        <frame name="contents" target="main" scrolling="no" noresize src="nav.html" marginwidth="0" marginheight="0">
        <frame name="main" scrolling="auto" src="home.html">
        <frame name="right" scrolling="auto" src="right.html">
      </frameset>
      <frame name="bottom" scrolling="no" noresize target="contents" src="bottom.html">
    </frameset>
    </html>
    Here's the actual website.
    If you can help me with the glitch I'd be highly obliged. I'm trying to get the finished layout to look somewhat like this. Thanks for your help,

    Rob
    Last edited by codejunkie; 02-01-2005 at 05:50 PM.

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    u almost had it, u had closed the frameset with rows too early, here u go i adjusted this problem and it now works
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Rob's World</title>
    </head>
    <frameset framespacing="0" border="0" frameborder="0" rows="130,*,20">
      <frame name="top" scrolling="no" noresize target="contents" src="header.html" marginwidth="0" style="float: center">
    <frameset cols="190,*, 225">
        <frame name="contents" target="main" scrolling="no" noresize src="nav.html" marginwidth="0" marginheight="0">
        <frame name="main" scrolling="auto" src="home.html">
        <frame name="right" scrolling="auto" src="right.html">
      </frameset>
      <frame name="bottom" scrolling="no" noresize target="contents" src="bottom.html">
    </frameset>
    </frameset>
    <noframes>
    <body>Your browser does not support frames please use a browser that supports frames</body>
    </noframes>
    </html>

  • #3
    New Coder
    Join Date
    Sep 2004
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks man. I feel stupid now for not seeing it lol. Thanks again

  • #4
    New Coder
    Join Date
    Sep 2004
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts
    lol, alright I have another problem. I'm trying to get the index frame to be static, and when you click a button on it only the content in the middle changes instead of the nav frame changing. Any suggestions?

  • #5
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    which one is the index frame? the one with home.html in it? what target are you links set to? if u want the nav to change they should be set to target="main"

  • #6
    New Coder
    Join Date
    Sep 2004
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts
    If you go here and click on one of the buttons on the nav bar on the left, that frame changes and the middle frame (home) stays the same. What I'm aiming at is when you click on a button on the nav bar the middle content changes, and nothing else.

  • #7
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    okay i figured that was the problem u have no targets assigned to your links, in your links on your nav.html add a target to them similar to target=_blank except make them target="main" for any link u want to open in the middle frame the one with home.html in it i will use one of your nav.html links as an example
    Code:
    <a href="/games/index.html" target="main"><img src="images/buttons/games.gif" class="gradualshine" onMouseover="slowhigh(this)" onMouseout="slowlow(this)" bordercolor="black"></a><br>
    that link will open in the frame that has home.html in it, and u can take out target=main from the nav frame in your frameset code

  • #8
    New Coder
    Join Date
    Sep 2004
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks man


  •  

    Posting Permissions

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