Results 1 to 7 of 7

Thread: Using Frames

  1. #1
    Join Date
    Aug 2005
    Posts
    200
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Using Frames

    <html>
    <head>
    <title>Home Page</title>
    <frameset>
    <frameset rows="160,*">
    <!-- Logo -->
    <frame src="frame.htm">
    </frames>
    </html>

    This frame is at the top of the page. I would like to have the links open in a frame underneath of this one. Here is what the page looks like so far. Thanks for the help, JF

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Code:
    <html>
    <head>
    <title>Campion Academy Home Page</title>
    <frameset>
    <frameset rows="160,*">
    	<!-- Campion Logo -->
    	<frame src="frame.htm">
    	
    </frames>
    </html>

    </frames>?! And that markup is awful. Please, use a validator! Personally, I'm surprised that page even works.
    To answer your question: firstly, sort your markup out (hint: fix errors from the top down); then, give the target frame a name attribute, like so:
    Code:
    <html>
    <head>
    <title>Campion Academy Home Page</title>
    <frameset rows="160,*">
    	<!-- Campion Logo -->
    	<frame src="frame.htm">
    	<frame src="otherframe.html" name="main">
    </frameset>
    </html>
    Then, in the links in the page displayed in the top frame, use target="name" like so:
    Code:
    <a href="page3.html" target="main">Page Three</a>
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Aug 2005
    Posts
    200
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Thats talent

    Wow. I didn't know i was talented enough to do that. I also didn't know that those tester things existed. Anyways. So If I want the link to target the frame below all I have to do is tell it to target that name?

  4. #4
    Join Date
    Aug 2005
    Posts
    200
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Frames fixed

    I love you Tweey. Just one more question though. There us a borger around the logo frame. How do I get rid of that? Thanks alot for the help, JF

  5. #5
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    I see you haven't validated your page yet, and that you've put the link in the wrong place.
    Code:
    	<frame src="frame.htm" frameborder="0">
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  6. #6
    Join Date
    Aug 2005
    Posts
    200
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    How do I make a page come up that dosen't load in the frame? If I could I would like to make it a page that pops up and is seperate from the others.

  7. #7
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Code:
    <a href="..." target="_top">Click Here</a>
    Or, for a new window:
    Code:
    <a href="..." target="_blank">Click Here</a>
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

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
  •