![]() |
![]() |
Main | Basic | Advanced | Download | |||
---|---|---|---|---|---|---|---|---|
![]() |
Frames 2
Ok, so you've managed to survive the first frame tutorial... What about this then?!
Frames may be very nice, but in my opinion they should only be used when you want a topic list on one side of the screen and the main page on the other, (an index frame and a main frame).
<FRAMESET COLS=100, *>
Frames, to look good, are quite often borderless, which means they don't show those little grey lines separating the frames. Fair enough, you say, does that make a difference? The answer is yes it does make a lot of difference. To get an idea of what borderless frames are about, visit Microsoft, British Telecom, or Rock.com. These sites have very good borderless frame pages, which do give some cool effects.
<FRAMESET COLS=10%,* MARGINHEIGHT=0 MARGINWIDTH=0 BORDER=0 FRAMEBORDER=0>
That makes any frame specified by that FRAMESET tag borderless.
Linking to and within framed pages isn't as easy as normal linking: if you have link in a frame and someone clicks it, the page linked to will appear in the actual frame it was linked from, not exactly desirable in many situations. The way to get round this is to use the TARGET attribute in links.
<A HREF="somepage.htm" TARGET="FRAMENAME">Link Text</A>
In between the inverted commas of the TARGET statement, place the name of the frame that you want the page to appear in. If you want a new window, make up a name for the window that isn't the same as any you have for your other frames, and then the browser will automatically create a new window, which you can treat just like another frame. If you want the page to appear full screen, set the TARGET attribute to "_top".
|
Copyright 1998 Iceman. All Rights Reserved. Further Legal Stuff
This
page hosted by Get
your own Free Home Page