You are here: Re: Same Menu On Every Page « HTML « IT news, forums, messages
Re: Same Menu On Every Page

Posted by Beauregard T. Shagnasty on 08/10/07 04:15

dorayme wrote:

> "Beauregard T. Shagnasty" wrote:
>> Matt White wrote:
>>> I am creating a page with 2 <div>'s - one is a menu and one holds
>>> the page content. The menu is the same on every page. What is the
>>> best way to get the HTML for the menu on every page without putting
>>> the full source on every page? I'd rather have a separate menu.html
>>> file that gets loaded into the menu <div> when each page loads.
>>> Thanks.
>>
>> http://allmyfaqs.net/faq.pl?Include_one_file_in_another
>
> I sometimes wonder what other folks do in regard to the includes, do
> they put in all the enclosing element markup within the include or
> leave the container explicit in the html file to remind the author
> how the include goes. I tend to go the greedy route and put all in
> the include. This is to show high wire courage in the face of a
> creeping dementia.

I place everything in the include file that goes with that object. Can't
see any reason to have to remember to add containers or whatever to the
main file. Just add the 'include' line.

--
-bts
-Motorcycles defy gravity; cars just suck

 

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

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