+ Reply to Thread
Results 1 to 3 of 3

Thread: Frames problem

  1. #1
    levi2251 is offline x10Hosting Member levi2251 is an unknown quantity at this point
    Join Date
    Jul 2009
    Posts
    4

    Frames problem

    okay.... So I have never been good at frames, and have started trying to use them... I could figure out how to use them in a single direction, but when it comes to multiple directions, it seems I only see the first frame. Here is the code I am using.

    Code:
    <frameset cols="100%" rows="20%">
    <frame src="srcname.htm" />
    </frameset>
    <frameset cols="25%,75%" rows="100%,100%">
    <frame src="srcname2.htm" />
    <frame src="srcname3.htm" />
    </frameset>
    I have also tried putting this all in one frameset, and putting the cols="" and rows="" into the <frame> tag but nothing works... Only see the first frame still... Any help would be appreciated.

  2. #2
    cybrax's Avatar
    cybrax is offline x10 Elder cybrax is on a distinguished road
    Join Date
    Aug 2009
    Location
    UK
    Posts
    699

    Re: Frames problem

    I've never been any good either with frames and as a website construction method the use of frames has fallen seriously out of favour and been largely replaced by CSS (cascading style sheets). Assuming that srcname2.htm and so on are part of your website there are other methods that can be used to include the data from one file inside another.
    The code must flow.
    Project 157: Latest UK Jobs direct to your mobile phone
    New Domain under construction: Lovelogic.net
    home for some new projects that we can't keep here ;)


  3. #3
    LostHorizon's Avatar
    LostHorizon is offline x10Hosting Member LostHorizon is an unknown quantity at this point
    Join Date
    Dec 2010
    Posts
    35

    Re: Frames problem

    Hi "levi2251",

    If I'm NOT mistaken, if what you're trying to do is something like this:

    +-------------------------------------------------+
    | srcname.htm
    +-------------------------------------------------+
    | srcname2.htm | srcname3.htm
    +-------------------------------------------------+

    then try the following codes:

    Code:
    <FRAMESET rows = "20%,80%">
       <FRAME src = "srcname.htm">
    
       <FRAMESET cols = "25%,75%">
          <FRAME src = "srcname2.htm">
          <FRAME src = "srcname3.htm">
       </FRAMESET>
    </FRAMESET>

    The correct usage for nested frame sets is as follow:

    Code:
    <FRAMESET ...
       <FRAMESET ...
       </FRAMESET>
    </FRAMESET>

    P.S.: Be sure to use the Frameset Document Type Definition (DTD) for your HTML document so the browser would render/display the page correctly.

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
    <HTML>
      :
      :
    </HTML>


    ---------- Post added at 05:36 AM ---------- Previous post was at 05:08 AM ----------

    Hi "levi2251",

    By the way,

    1. if you don't like to have the border around the frame(s), you can turn if OFF with the "frameborder" attribute,

    2. also, if you don't want the viewer(s)/visitor(s) to resize your nested frame(s), you can disallow it using the "noresize" attribute.


    P.S.: You can find all other <FRAME> attributes at:

    http://www.w3.org/TR/html4/present/frames.html#h-16.2.2

    Hope you'll find these helpful,

    Best regards.

+ Reply to Thread

Similar Threads

  1. frames
    By scummerz in forum Graphics & Webdesign
    Replies: 4
    Last Post: 01-22-2008, 05:16 PM
  2. ads and frames
    By swirly in forum Scripts & 3rd Party Apps
    Replies: 0
    Last Post: 06-07-2006, 03:12 PM
  3. Do frames cause a problem?
    By Shoelace in forum Free Hosting
    Replies: 6
    Last Post: 02-14-2006, 09:52 PM
  4. The Ads with Frames
    By Daniel in forum Free Hosting
    Replies: 2
    Last Post: 09-03-2005, 02:08 PM
  5. A Big Ad problem with frames
    By Chirantha in forum Free Hosting
    Replies: 0
    Last Post: 07-23-2005, 01:30 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