Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: nested frames  (Read 3086 times)

0 Members and 1 Guest are viewing this topic.

dyl

  • Guest
nested frames
« on: July 26, 2010, 11:00:11 AM »
hi im trying to create a page from nested frames, this is my code but i cant see whats going wrong, the images end up all over the place.

<html>
<head>
<title>titan snow</title>
</head>

<frameset rows="77,17,173,43,45,153" frameborder="no" framespacing="0" border="0">
     
   <frame src="http://i828.photobucket.com/albums/zz210/dyltomkins/landinghead.jpg" marginheight="0">
   <frame src="http://i828.photobucket.com/albums/zz210/dyltomkins/lannavwhole.jpg" marginheight="0">
</frameset>

<frameset cols="401,119" frameborder="no" framespacing="0" border="0">
<frame src="http://i828.photobucket.com/albums/zz210/dyltomkins/landingmain.jpg" marginheight="0">
  </frameset>
    <frame src="http://i828.photobucket.com/albums/zz210/dyltomkins/landinoffers.jpg" marginheight="0">
    <frame src="http://i828.photobucket.com/albums/zz210/dyltomkins/landingtwit.jpg" marginheight="0">
    <frame src="http://i828.photobucket.com/albums/zz210/dyltomkins/landingface.jpg" marginheight="0">
    <frame src="http://i828.photobucket.com/albums/zz210/dyltomkins/landingnews.jpg" marginheight="0">
</frameset>

kpac

  • Web moderator
  • Moderator


  • Hacker

  • kpac®
  • Thanked: 184
    • Yes
    • Yes
    • Yes
  • Certifications: List
  • Computer: Specs
  • Experience: Expert
  • OS: Windows 7
Re: nested frames
« Reply #1 on: July 26, 2010, 11:56:33 AM »
To be honest I can't understand why anyone uses frames.

But anyway I can see a good few problems with that code.
1) In the first frameset, you have 6 rows set but you are only using 2 frames inside the frameset.
2) In the second frameset you have 2 columns but you're using just 1 frame.
3) The four frames after that are not in a frameset.

BC_Programmer


    Mastermind
  • Typing is no substitute for thinking.
  • Thanked: 1140
    • Yes
    • Yes
    • BC-Programming.com
  • Certifications: List
  • Computer: Specs
  • Experience: Beginner
  • OS: Windows 11
Re: nested frames
« Reply #2 on: July 26, 2010, 12:19:51 PM »
you can only have one frameset tag that is used, I believe. if you want nested frames you need to make a frame reference a file that contains another frameset.
I was trying to dereference Null Pointers before it was cool.