DHTML Lab: HierMenus CENTRAL: Version 3 Frameset Instructions, Step 1 - dhtmlab.com | WebReference

DHTML Lab: HierMenus CENTRAL: Version 3 Frameset Instructions, Step 1 - dhtmlab.com

Instructions -
Frameset Menus -
Step 1 of 6

Revised: June 26, 2001

View all Steps Step 1 of 6 Go to Step 2
Create a frameset document.
It is recommended that the navigation frame be called nav and the main frame be called main.

<HTML>
<HEAD>
</HEAD>
<FRAMESET COLS="145,*" FRAMEBORDER=0 BORDER=0>
    <FRAME NAME="nav"
           SRC="yourNAVpage.html"
           SCROLLING=NO MARGINHEIGHT=0 MARGINWIDTH=0>
    <FRAME NAME="main"
           SRC="yourFirstMainPage.html">
</FRAMESET>
</HTML>

The above HTML creates a standard two-frame layout. The narrow frame on the left will contain navigation aids, while the large frame will contain the content pages. The large majority of framesets are created in this way.

The navigation frame is often placed on top, rather than on the left. Other times, there are more than two frames in the frameset. And on rarer occasions, complex nested frameset layouts are specified.

The menu script will work in all frameset variations, provided that you clearly identify two of the frames:

  1. the navigation frame.
    This frame should contain the HTML document that controls the frameset navigation.
    It will have the links that cause new content pages to appear in a larger, main, frame.
    The content of the navigation frame does not change.
    This frame will contain the menu script.

  2. the main frame.
    This frame hosts the content pages, navigated to using links in the navigation frame.
    The menus will appear in this frame.

The menu script will need to identify these frames, so they must be named accordingly. If you have not mastered the intricacies of the script, then you should name the the navigation frame, nav, and the main frame, main. Otherwise, you will have to make some manual changes in the script itself. Unless you have an important reason for avoiding these monikers, please stick to them.

You do not need to make changes to any of the pages that appear in the main frame. The complete menu-creation and re-creation is controlled by the navigation frame.

View all Steps
Step 1 of 6
Go to Step 2

Produced by Peter Belesis and

All Rights Reserved. Legal Notices.
Created: July 20, 1999
Revised: June 26, 2001

URL: http://www.webreference.com/dhtml/hiermenus/version3/instructions/frameset/step1.html