Results 1 to 8 of 8

Thread: Ahh! I have been trying to figure out frames!

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

    Unhappy Ahh! I have been trying to figure out frames!

    This code is driving me batty! I have my frame made, and my main page made, in my notepad, and I did this once before(a year or 2 ago), and I didn't seem to have this much trouble. but now I cant get the frame to show up, I want a frame on the left of the page. Someone please help, and tell me what I am doing wrong, right now this is my coding that I have(which I seem to thing, I have it all messed up, because it didn't seem this complicated before.)

    <frameset>
    <frame src="frame.html"
    frame name="frame"
    frame marginwidth=1
    frame marginheight=1
    frame scrolling=auto
    </frame>
    </frameset>

    Thanks so much, if you can help me
    Kimi
    Last edited by Kimi; 08-28-2005 at 02:09 PM. Reason: I put notebook, when it was supose to be note pad :blushes:

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

    Default

    You have it all messed up.
    Code:
    <frameset cols="20%,80%">
    <frame src="frame.html"
    name="frame"
    marginwidth="1"
    marginheight="1"
    scrolling="auto"/>
    <frame src="mainpage.html"
    name="main"
    marginwidth="1"
    marginheight="1"
    scrolling="auto"/>
    </frameset>
    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
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Red face

    hmm... Thanks.... It helps alot more... just now I'm stuck again... My frame is there, and in my frame, I have the background that I created for the frame, but in the main page, my background image, has now dissapeard... What happend? what do I do to fix it.. here is the codes I have so far, on my main page.

    And also my "bla bla bla" text isn't showing up, and my special cursor is only working in the frames..
    And How do I get my links from the frame, to open up in my mainpage window area? because right now it is making multiple frames, every time I click on the link I created in my frame.

    And just so you know, my main page is index.html, and my frames is frames.html.

    Code:
    <html>
    
    <head>
    <title>mainpage
    </title>
    
    <style>
    <!--
    BODY{
    cursor:url("cursur.cur");
    }
    -->
    </style>
    
    <frameset cols="20%,80%">
    <frame src="frame.html"
    name="frame"
    marginwidth="1"
    marginheight="1"
    scrolling="auto"/>
    <frame src="index.html"
    name="index"
    marginwidth="1"
    marginheight="1"
    scrolling="auto"/>
    </frameset>
    </head>
    
    <BODY BACKGROUND="pb.jpg">
    
    bla bla bla
    </body>
    
    </html>
    Last edited by Kimi; 08-28-2005 at 06:13 PM. Reason: I found how to fix my other problem, but this one is the new problem, that I haven't figured out why yet it is doing this.

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

    Default

    No, you have to use a seperate page for the frameset. Call your index.html something like main.html, and then put in index.html:
    Code:
    <html>
      <head>
        <title>Kimi's Site</title>
      </head>
      <frameset cols="20%,80%">
        <frame src="frame.html"
          name="frame"
          marginwidth="1"
          marginheight="1"
          scrolling="auto"/>
        <frame src="main.html"
          name="main"
          marginwidth="1"
          marginheight="1"
          scrolling="auto"/>
      </frameset>
    </html>
    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!

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

    Default

    Thanks much again!

    I just have one more question, how do I get the link to open in my main page, and not another frame?

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

    Default

    You can use the target= attribute of the anchor tag to define where a link will open.
    Code:
    <a href="page.htm" target="main">Another page</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!

  7. #7
    Join Date
    Aug 2005
    Location
    Canada
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post Frames

    <frameset rows="16%,*" border="0">
    <frame name="menu" src="menu.html">
    <frame name="main" src="main.html">
    <noframes>

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

    Default

    Ignore the guy above, who just more or less repeated what I said, but neglected all the style effects you wanted, neglected the rest of the page, and for some reason used <noframes> instead of </frameset>.
    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
  •