Frames have pretty much been phased out with the increasing use of CSS. However here are a few basics in case you still need to use frames.
Frames can make navigation around your site painless if they are properly coded or a nightmare if not. Frames like the menu bar at the left and the center frame here can be broken into rows or into columns. If you wish rows and columns you will have to nest your frames.
Example top page
< frameset cols=”23%,*” border=0 frameborder=no frameborder=0 >
< frame name=”menu” src=”webtools.html” >
< frame name=”information” src=”current.html” >
< /frameset >
Naming frames makes it easy to put your pages in the correct frame. The navigation menu links
< a href=”generaljava.html” target=”information” > Java < /a >
name which frame they should open into. This is the target. If you are linking an outside page, off of your site, you should use target=”_top” which will open the page in a new window rather than inside your frame.
Floating frames, like the navigation bar at the top are like opening a window inside a window. What makes it nice is that I can have one file with the menu bar and make changes as needed only to that file.
To link in a floating frame
< iframe src=”webtoolsbanner.html” > </iframe >
0 responses so far ↓
There are no comments yet...Kick things off by filling out the form below.
You must log in to post a comment.