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 Jonathan N. Little on 02/07/07 13:43

BigDaddyBS wrote:
> "Talal Itani" <titani@verizon.net> wrote in message
> news:gL4yh.2704$6P4.212@trnddc06...
>> Why did I come here? I came here expecting to find a magic answer, but I
>> did not find one. I am not guilty. I tried. You tried. Thanks a bunch.
>
>
> You came for the same reason many others of us came to these groups... To
> LEARN.
>
> It's hard to listen to the pros (as most believe themselves to be) slap you
> down, but if you learn a little bit from those actually trying to help
> (without the slap), and ignore the slappers (unless they actually give some
> help), you can make your site better and easier to manage. I found that some
> newsgroup people can be quite ... nasty ... to newbies and those they
> believe are wrong.

Okay, I reread the thread and I cannot see where anyone slapped this OP.
The only 'slightest' slap was when OP complained that he did not get
the 'magic answer' he expected. Even that was gentle.

To OP: using some sort of include is very easy and makes managing
changes a snap whether your have 10 pages on 1000 pages. You have many
options depending on what your server is running. SSI, PHP, ASP ... If
you have common bits to every page, just save the parts as separate
files and assemble with any of the include methods offered. In PHP it
could be as simple as...


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<meta http-equiv="content-language" content="en-us">
<title>Page Title</title>
</head>
<body>

<?php
include('banner.php');
include('navbar.php');
?>

<h1>My Page</h1>
<p>
The rest of my page...
</p>

<?php include('footer.php' ?>
</body>
</html>

Could not be simpler!

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

 

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

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