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 Gwin on 02/06/07 04:59

On Mon, 5 Feb 2007 19:58:44 +0100, Alfred Molon wrote:

> In article <eq7fbo$ass$1@ss408.t-com.hr>, Shija says...
>> 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.
>
> Don't you have to use the ending *.shtml for that?

add to your .htaccess and you can do what you want for includes.

AddType text/html .shtml .shtm .htm .html
AddHandler server-parsed .shtml .shtm .htm .html
AddType text/html .mobi

the last i add to fuk em up a little.
--
Secretary of Altered States
Governement of the Mens Room

 

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

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