How To Build A DHTML Navigation Portal Step by Step
- Choose a Navigation Portal DHTML Template.
- View it in a full window.
- Look at the DHTML code.
- Study the CSS stylesheet, with size and position data.
- Create your own banner.html, footer.html files.
- Change the size and position of the iframes (banner, nav, etc.) as needed by editing the CSS stylesheet.
- Point the nav, navr, or topnav frames to a skyBuilders navigation panel generator link.
- Change the styles (font, colors, alignments, etc.) of the nav panel.
- Change the menu items in the nav panel and their hyperlinks.
- If you want to use the resulting DHTML page on a web site without skyBuilders timeLines tools, save the page source in your browser. We call this a static "peel" of the dynamic code.
1) Decide on a Navigation Portal design, say one with a banner (usually the home of global site-wide navigation), a navigation bar on the left side (for local navigation in sections of the site), and a footer frame (often home for support links, copyright info, etc.), like this (called template BNF):
Note that these frame colors are only suggestions. They reveal the underlying architecture of the page. If you make all the frames have identical colors, the navigation architecture becomes invisible to the user, but it still functions without obtruding on your page aesthetics.
View HTML CSS
2) Click on View to see the way the portal design will look in the browser:
3) Click on DHTML to see the DHTML iframes code. Copy and paste this DHTML code into skyWriter. This will usually become your index.html file.
<title>skyPortal DHTML Template BNF</title>
<link rel="stylesheet" href="BNF.css">
<iframe name="banner" id="banner" scrolling="no" frameborder="no" src="banner.html">
<iframe name="nav" id="nav" scrolling="no" frameborder="no" src="nav.html">
<iframe name="content" id="content" scrolling="no" frameborder="no" src="content.html">
<iframe name="footer" id="footer" scrolling="no" frameborder="no" src="footer.html">
Click on CSS to see the stylesheet code that controls size and position of each iframe. Change the top, left, width, and height values for each iframe to achieve the desired look.
4) Make your own banner.html and footer.html files.
They may contain any graphics and text you want. You need only make the material fit into the size of the banner and footer frames, or change the iframe sizes appropriately in the next step. It's a good idea to include a logo image in the banner on the left that is a link back to the home page.
You may write your own nav panel code, or use the skyBuilders navigation panel generator (a database-backed Dynamic HTML tool that is browser independent).
When you use the skyBuilders navigation panel generator, you change the src attribute in the nav iframe.
For example, change src="nav.html" to src="/timelines/Nav.html?DoWhat=generate&selectedOptionID=1.
The selectedOptionID (here = 1) should match the number of your nav panel (See Step 6).
5) To change the sizes of the banner, nav, and footer frames (to fit the content you design) you must edit the values for the width and height pixels settings in the CSS stylesheet.
In our examples, the height of the banner iframe is 90 pixels, 36 is the height of the footer iframe, and the height of the content area (the remaining pixels in the middle) is 494 to give a total of 600 pixels. The page width is 800 pixels. In a DHTML page, this size remains fixed as you widen the browser.
6) To use the skyBuilders navigation panel generator, go to Pages/Portals > Manage Nav Panels in timeLines.
Help is available for Manage Nav Panels.
7) To change the styles (font, colors, alignments, etc.) of a nav panel, go to Pages/Portals > Manage Nav Styles in timeLines.
Help is available for Manage Nav Styles.
8) To change the menu items in the nav panel and their hyperlinks, go to Pages/Portals > Manage Nav Panels in timeLines.
9) To use this page without timeLines, while viewing it in a browser do either:
- Save As
View Source, Select All, Copy and Paste the source into an HTML file