+ Reply to Thread
Results 1 to 10 of 10

Thread: HTML Frames

  1. #1
    richm8026 is offline x10 Sophmore richm8026 is an unknown quantity at this point
    Join Date
    Feb 2008
    Posts
    138

    HTML Frames

    I was wondering if I only need two files for frames? I do need more than one html page, it's going to be an about page, it's going to have an about page for me and an about page for a friend, I only need and index.html, and a mainsrc.html file for frames correct?? I looked online for some tutorials, I really didn't understand what they were saying...


  2. #2
    alz4445 is offline x10 Sophmore alz4445 is an unknown quantity at this point
    Join Date
    Sep 2008
    Posts
    124

    Re: HTML Frames

    For frames you have the page that the frame is on, let's say index.html, and then you will need another page to display the content inside the frame. (With the src="..." attribute)

    So, on index.html,
    HTML Code:
    <iframe src="page2.html" width="500" height="500"></iframe>
    And on page2.html,
    HTML Code:
    <h2>Hello</h2><p>Content goes here.</p>
    That's just an example.
    Last edited by alz4445; 11-15-2008 at 04:18 AM.


  3. #3
    richm8026 is offline x10 Sophmore richm8026 is an unknown quantity at this point
    Join Date
    Feb 2008
    Posts
    138

    Re: HTML Frames

    Alright, so have all of my Links and stuff on index.html and rename leftside.html to something else? I wonder why I can't seem to grasp this stuff, LOL.. Then, I can display the stuff on index.html on the, lets say, index2.html file?


  4. #4
    alz4445 is offline x10 Sophmore alz4445 is an unknown quantity at this point
    Join Date
    Sep 2008
    Posts
    124

    Re: HTML Frames

    No, put all of your links and stuff on leftside.html, and on the index page, (Should be index.html ;) ) it would show up if you used this code.

    HTML Code:
    <iframe src="leftside.html" width="350" height="800"></iframe>
    Hope you get it now ;) You can change the 'leftside.html', the width & height to whatever you want.


  5. #5
    richm8026 is offline x10 Sophmore richm8026 is an unknown quantity at this point
    Join Date
    Feb 2008
    Posts
    138

    Re: HTML Frames

    Oooooooh, no need for:

    Code:
    <frameset cols="25%, 75*">
    
    </frameset>
    then?

    There's a problem here, it's opening the content in the leftside.html instead of index.html

    I put <Iframe src="leftside.html"></iframe>

    in the index.html file, does that go in the body section, or above <body></body>,

    I put a href="aboutrich.html" in the leftside.html file, maybe that's why it's not showing in the right pane?
    Last edited by richm8026; 11-15-2008 at 08:48 AM.


  6. #6
    alz4445 is offline x10 Sophmore alz4445 is an unknown quantity at this point
    Join Date
    Sep 2008
    Posts
    124

    Re: HTML Frames

    Alright, just have a look at this.
    You put it in the <body> tags where you want it to appear, if you don't have anything restricting the size, then it will just fill the whole page up.


    index.html
    HTML Code:
    <frameset cols="25%, 75*">
    <iframe src="leftside.html"></iframe>
    </frameset>
    leftside.html
    HTML Code:
    <a href="aboutrich.html">About Rich</a>


  7. #7
    richm8026 is offline x10 Sophmore richm8026 is an unknown quantity at this point
    Join Date
    Feb 2008
    Posts
    138

    Re: HTML Frames

    I'll never be able to pass that Online HTML Exam if I can't conquer this, frames is all I am lacking on, and I think I'll get it, what about JavaScript, are Frames harder in JavaScript, or about the same?


  8. #8
    alz4445 is offline x10 Sophmore alz4445 is an unknown quantity at this point
    Join Date
    Sep 2008
    Posts
    124

    Re: HTML Frames

    I have no idea, I don't know JavaScript.


  9. #9
    richm8026 is offline x10 Sophmore richm8026 is an unknown quantity at this point
    Join Date
    Feb 2008
    Posts
    138

    Re: HTML Frames

    Thanks, I got them working anyway, I read w3.org online and they said <frameset></frameset> isn't being used any longer, now they use JavaScript and CSS, I am not sure how they use CSS to do Frames, I looked in my CSS How-To book and there was nothing in there for frames..

    After I clicked the home link, it just opens another frame, how do I stop that from happening?
    Last edited by richm8026; 11-15-2008 at 11:01 AM. Reason: Thought the <br> tag would work


  10. #10
    alz4445 is offline x10 Sophmore alz4445 is an unknown quantity at this point
    Join Date
    Sep 2008
    Posts
    124

    Re: HTML Frames

    Well I have no idea if you don't show me the code.. ;)


+ Reply to Thread

Similar Threads

  1. Hybrid's HTML Lessons
    By Hybrid in forum Tutorials
    Replies: 18
    Last Post: 11-28-2009, 02:12 PM
  2. Do frames cause a problem?
    By Shoelace in forum Free Hosting
    Replies: 6
    Last Post: 02-14-2006, 09:52 PM
  3. [IPB] Contiguous Board Index
    By phenetic in forum Tutorials
    Replies: 5
    Last Post: 09-18-2005, 10:31 AM
  4. What is XML!
    By wizeman in forum Tutorials
    Replies: 6
    Last Post: 08-27-2005, 12:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers