1 Attachment(.zip) included.
Updates:
29-12-07: Doctype added in example files (Advised by jlhaslip)
Designing a whole website takes a lot of planning and organization. Designing a proper navigation system is a basic step in building your website.
If you are developing webpages in html you would have observed that as you go on creating pages it becomes difficult to maintain the links to the pages. This article will guide you in developing a common navigation menu for your website. It describes three ways, so if you don't understand one you can read the other.
Navigation is a link system by which the user moves from one page to other in your website and creating it needs a proper method. When I was a beginner this was the first hurdle encountered by me and none of the books explained this concept clearly, so I thought of writing this article. Consider this simple site structure:
Home
Houses
|
House 1
House 2
House 3
Mortgage Rates
|
Bank 1
Bank 2
In this sample site structure if you provide the links of Home, Houses, Mortgage Rates in every page then the user can go to any of the three pages irrespective of the page he is in. But what if you want to add another page “Agencies”. You have to manually add this link to every page into your website. This can be a nightmare if you have 20 plus pages. Although there are many ways of solving this problem, I am going to explain the simple method.
One great method is to create a menu which is common for the whole website. Hence pages can be added and its link can be added in just one menu to represent in the whole site.
This method uses “Inline Frame”. Note that this is not the regular frame which is created with “frameset” tags. The tag used is <iframe>. The <iframe> container can appear inside the <body> element of the web page. For example
Quote
</iframe>
Now you have to create another page “menu.html” in which you will put all your links. Don't forget to select "Parent Frame" in the link type. For example, to link to page_1.html:
Quote
You’ve done. Now every page has a consistent navigation menu.
Important Note:
The inline frames width and height should be greater than the menu you create. Otherwise the content inside the inline frame would appear cropped.
Creating inline frames with Microsoft Frontpage:
If you were unable to follow the method above you can do it in Microsoft Frontpage (Even if you can't follow this then download the example zip file).
1) Firstly create the pages of your website.
2) Then for the menu, create a new page and add the names of the pages. Highlight the first name, then right click and select "Hyperlink". In this select the page which should come when a user clicks that name. Also, we want the page to appear on the whole page, not inside the frame. So, select "Target Frame" in the same dialog and choose "Parent Frame" as Target Setting (This is important step).
3) Link all the pages by the above method.
You've done it.
Any doubts are welcome.
Thanks.
Attached File(s)
-
a_example1.zip (4.01K)
Number of downloads: 18
This post has been edited by nitish: 29 December 2007 - 09:09 AM

Help

Add Reply



MultiQuote



















