Results 1 to 7 of 7

Thread: CSS Frame Issue#1

  1. #1
    Join Date
    Jun 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default CSS Frame Issue#1

    I am using CSS frames with a top and right static frames. I have some links in my right frame and want them to show up in the main content window. Everytime I hit the link it opens in a new window. Here is my code.....
    Code:
    <TD><IMG SRC="http://oak/eng/images/search.gif" WIDTH="20" HEIGHT="30" ALIGN="ABSMIDDLE">&nbsp;<a href="http://oak/eng/search/search.asp"><b>ENG Doc Search</b></a><br>
    			</TD>
    Thank you, I am new to frame usage.

  2. #2
    Join Date
    Apr 2009
    Location
    Cognac, France
    Posts
    400
    Thanks
    2
    Thanked 57 Times in 57 Posts

    Default

    Make sure you give each of your frames a name, eg menu, main, etc., in the frame declaration.

    In your links that you want to open in the main body, if the name you have given that is 'main', then add 'target="main"' to the <a href="something" line.

    This should hopefully do the trick

  3. #3
    Join Date
    Jun 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I am completely new to frames so I don't think that I am getting the name across correctly. How do I name the frame in the frame declaration section?

  4. #4
    Join Date
    Apr 2009
    Location
    Cognac, France
    Posts
    400
    Thanks
    2
    Thanked 57 Times in 57 Posts

    Default

    Here is a section of one of my pages where I call in the frames, you can see the names I've used.

    HTML Code:
    <frameset framespacing="0" border="0" frameborder="0" bordercolor="#606060" rows="132,98%">
      <frame name="top" scrolling="no" noresize src="hdr_top.htm">
      <frameset cols="16%,78%,2%,3%">
      <frame name="menu" src="menu.htm" scrolling="no" noresize>
        <frame name="main" src="main.htm" noresize>
    	<frame name="spacer" src="home_spacer.htm" scrolling="no" noresize>
        <frame name="right" src="logbotrgt.htm" scrolling="no" noresize>
      </frameset>
      <noframes>
    When I do <a href="somepage.htm" target="main"> the new page, 'somepage.htm', opens up in the frame called 'main'

  5. #5
    Join Date
    Jun 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    From the css that I copied this seems to be where the frame is described...
    Code:
    #maincontent{
    position: fixed;
    top: 100px;
    left: 0;
    right: 245px; /*Set right value to WidthOfFrameDiv*/
    bottom: 0;
    overflow: auto; 
    background: #fff;
    }
    Then within my frame in the body I have this:
    Code:
    <TD><IMG SRC="myimage.gif" WIDTH="20" HEIGHT="30" ALIGN="ABSMIDDLE">&nbsp;<a href="http:mypage" target="maincontent"><b>MyDescription</b></a><br>
    			</TD>
    Thank you for the time and patience.

  6. #6
    Join Date
    Apr 2009
    Location
    Cognac, France
    Posts
    400
    Thanks
    2
    Thanked 57 Times in 57 Posts

    Default

    To open the link you posted, in your main window, try adding this to it target="maincontent"

    eg
    HTML Code:
    <TD><IMG SRC="http://oak/eng/images/search.gif" WIDTH="20" HEIGHT="30" ALIGN="ABSMIDDLE">&nbsp;<a href="http://oak/eng/search/search.asp" target="maincontent"><b>ENG Doc Search</b></a><br>
    			</TD>

  7. #7
    Join Date
    Jun 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I put that in and even opened the window fresh and it still is not working correctly.

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
  •