[Nfb-web] simulated frames
Blaine Clark
blaineclrk at gmail.com
Fri Jun 22 18:57:11 UTC 2012
Brian, either HTML or PHP will do practically the same, an entirely new
page is loaded with both. With frames and iframes only the frame section
of the page is loaded new. Some visually impaired hate frames because
only a portion of the page refreshes while others prefer it. When or if
using frames, keep tabs on your visitor's comments to see if you're
chasing any away.
When coding, it's easier to use frames because you don't have to write
an entirely new page. If you have a HTML template, you have pretty much
the same ease when it comes to adding pages. You just make changes in
each page where you need them. The nice thing about PHP, if you need to
make global changes on all of your pages, and sooner or later you will,
you only have to edit the source PHP files. For example, to make a
global change in your header, you should have one header PHP file that
you can change.
With HTML, you have to edit each and every file on your site to make
global changes, or you have to posses a batch editor and the confidence
that the changes you are making are correct and that you haven't missed
any files. Best and easiest in the long run is to make up a batch of PHP
files, one header, one left column, one center column, one right column
and one footer plus or minus whatever you need, then make a PHP page
template. When you make new pages use the template and add whatever
content you want where you want.
For your desired bit, probably two header PHP files would be best. One
for that left end of the header and another for the rest of the header.
Perhaps placing 'header-left.php' in a header table + table row + table
cell width="33%" and then 'header-main.php' in table cell width="66%"
for a rough example would suit.
With practice and a guiding eye, you can do the same with divs instead
of tables.
Date: Fri, 22 Jun 2012 11:49:49 -0500 From: "Bryan Schulz"
<b.schulz at sbcglobal.net>
hi, say if i want to layout a page with a small block of five links in
the top left corner and about 2 inches down, and take up maybe 1/3rd of
the screen to the right and the other 2/3rd of that strip is a header
with organization name, etc. then the rest of the page below that
changes upon hitting one of the links. i have basically read that frames
are out/not the way to go, so how would you do this and would you use
html or php? thanks. Bryan Schulz ------------------------------
More information about the NFB-Web
mailing list