You are here: Re: How to make navigation buttons appear on all pages? « HTML « IT news, forums, messages
Re: How to make navigation buttons appear on all pages?

Posted by Shija on 02/05/07 14:35

Talal Itani wrote:
> I am designing a web site and would like to know how to make my navigation
> buttons appear on every page of the site. Currently, I select the buttons
> and I paste them on every single page, but this is getting annoying, since I
> always have do changes to the buttons. I am using Web Page Maker V2. Thank
> you very much.

If I understood, you need same buttons on every page.
That is easiest to do with SSI.

On every page where buttons should appear put include file. For example:

<!--#include file="buttons.txt" -->

Then, make a ordinary text file named buttons.txt, save it in the same
directory as web pages and in that text file write a peace of code you
would like to be on the pages. For example:

<ul>
<li><a href="index.asp">- Home Page </a></li>
<li><a href="search.asp">- Search Pages </a></li>
<li><a href="contact.asp">- Contact me </a></li>
<li><a href="links.asp">- Links </a></li>
</ul>

Every time page is loaded, server will change line:
<!--#include file="buttons.txt" --> with code in buttons.txt
When you need to add, or change some buttons, just change code in
buttons.txt, and this change will appear on every page.

Of course, your server needs to support SSI, but I think most servers do.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация