|
Posted by Chuck [Sbc\) on March 7, 2008, 2:11 pm
Please log in for more thread options Ed
I tried but I don't understand what I am to put in ("/styles/menu.txt") My
menu is contained in "ButtonSub.html"
> Chuck [Sbc) wrote:
>> I am new to html programming. I have created a web with 17 different
>> pages. On each page is a button menu which allow the user to switch to
>> another page without returning to the home page . The button menu is 40
>> lines long. What I would like to do is make a new file "ButtonSub.html "
>> which the button menu code. I would then remove all of the button codes
>> from each form . Instead , I would insert a statement that would call
>> ButtonSub.html to create the button menu on each html.page
>>
>> Clear as mud???.
>
> You can do that with a server-side include using PHP or other technology.
> That's assuming your Web site's server provides PHP. This is how I
> include the same menu on all pages on my site:
>
> <div id="doc_header">
> <!-- start menu HTML import-->
> <?php include("./styles/menu.txt"); ?>
> <!-- END menu HTML import-->
> </div>
>
> I use similar markup to put the same footer on each page.
>
> --
> Ed Mullen
> http://edmullen.net
> If man evolved from apes why do we still have apes?
|