Notice: Undefined variable: s_offline in /homepages/6/d168803796/htdocs/officetrio.com/o3/o3start.php on line 314
Create a Website Navigation Bar OfficeTrio: The Integrated ECommerce Solution OfficeTrio: The Integrated ECommerce Solution OfficeTrio: Features OfficeTrio: User Manual OfficeTrio: Testimonials OfficeTrio: The Demo is Offline! OfficeTrio: Order O3 Now

Create A Website Navigation Bar

Basic Navigation

The navigation bar is the list of links below the logo, or in the margin (or wherever you put it). It can be horizontal or vertical. There are examples of both on this website.

Using text links is the simplest way to construct a navigation bar like this - and is effectively used by many popular sites (i.e. Yahoo). You'd construct a text link like this:

<a href="http://www.yourdomain.com/index.html">
Home Page</a>
&nbsp; &nbsp;


INFO: &nbsp; is HTML for the space character. (This just puts space between the menu items). See The HTML Document Character Set for a complete list.


You can use images in your links bar if you desire. You just use something like the following:

<a href="http://www.yourdomain.com/index.html">
<img src="home.gif" alt="Home Page" border="0"></a>
<img src="space.gif" width="30">


INFO:
  • The 'alt' attribute of the <img> tag defines the text that appears if the image fails to load - or when you hold the mouse over it.

  • Text links are coloured blue (by default) by the browser, similarly images are given a blue border to indicate they are links. This can look bad. Setting the 'border' attribute of the <img> tag to zero prevents this border being drawn around the image.

  • space.gif can be a small transparent image. It can be just 1 pixel in size, the width attribute will effectively stretch it to create as big a gap as you want.




I'd recommend you create a text based navigation system for your website initially. You can add images later if you want.

If you're not sure what the all the pages in your site will be yet, then you could create them first, or use this as an opportunity to plan your site.



A More Dynamic Navigation Bar

The links bar in the examples are completely static. You have to change them by hand, in every file that contains them, every time you want to change it! If your web page will be changing, and you'll be adding / removing pages to it then you really should use a dynamic navigation bar written in Perl or PHP.

If you change your site, you only have to change this one file. You include (that's a PHP command!) this file in all of your web pages and it shows the header! (The nav.php script also greys out the link to the page you're on.)

To create a dynamic links bar, see the page on PHP Navigation scripts.

TIP: Arachnophilia allows you to a) open multiple files at the same time and then b) Perform 'Search and Replace' on all open files. This means that you can change the navigation bar (for example) in all your webpages in one stroke!



If you want some great examples, or even don't want to code it yourself, here are some other ways to create navigation menus
  • Xara Menu Maker cool software for creating DHTML menus.

  • Ex-Desins.net Cool online generators to create great Flash navigation bar, Flash button, JavaScript, CSS and DHTML special effects and menus for your web site for free!

  • i3DThemes.com More cool online generators.

  • Tamingthebeast.net's Free DHTML Navigation Bar Generator



Tutorials

Contents

Free EBooks
Free Scripts

Introduction
What Can I Do With A Website?
Internet History
Introduction
Preparation
Website Builders

Webmaster's Tools
Tools Intro
HTML Editor
PHP IDEs
Graphics Resources
Telnet and FTP
Miscellaneous Tools

Web Design
Web Design
Domains
Keywords/Description
Logo/Graphics

Creating Web Pages
Setup
HTML
HTML Tips And Tricks
Home Page
Navigation
Other Pages

Webhosting and Unix
Webhosting
Telnet/Unix
More Unix
Website Upload
Analyse And Verify

Programming
Programming 1
Programming 2

PHP
PHP
PHP Scripts
PHP Hit Counter Script
PHP Download Tracking Script
PHP Navigation Script
PHP Affiliates Tracking Script
PHP Users Management
PHP Site Search Script

Perl
Perl
Perl Hit Counter Script
Perl Order Processing Script

Databases
Databases
SQL
Database Setup

ECommerce
ECommerce

Automation
Automating Order Processing
PayPal Automation
Email Automation
Installing Scripts

Security
Basic Security

Affiliates
Affiliates Programs

Managing Your Website
Website Management
Promotion/Advertising
Search Engines
Search Engine Optimisation



Powered By OfficeTrio