Welcome to WebmasterWorld Guest from 54.196.232.162

Forum Moderators: incrediBILL

Message Too Old, No Replies

Separate navigation menu files

     
4:32 pm on Jul 20, 2010 (gmt 0)

New User

5+ Year Member

joined:Apr 4, 2010
posts: 24
votes: 0


Hi all,

I just wondered if it is possible to create a menu that will be used across the entire page system of a website consisting of HTML, CSS and Javascript.

Instead of having the HTML coding on every single page, just call on the seperate HTML file which in turn calls upon the CSS and Javascript. I will then just update the one seperate HTML file as the menu system develops thus updating al of the page files at once.

I know this can be done with php 'include' but is there a HTML equivalent?

Thanks for your help folks,

Best regards,

Foxhole
5:34 pm on July 20, 2010 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member tangor is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Nov 29, 2005
posts:6148
votes: 281


Look at server side includes (SSI). If your host provides, it was the original way to do what you ask.
1:32 am on July 21, 2010 (gmt 0)

Senior Member

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 28, 2004
posts:7999
votes: 0


Additionally, you can add

AddHandler server-parsed .html

to your .htaccess to parse .html files; normally SSI's require .shtml extensions by default.
4:35 pm on July 21, 2010 (gmt 0)

New User

5+ Year Member

joined:Apr 4, 2010
posts:24
votes: 0


Thank you for your input Tangor & Rocknbil, I am looking into these methods a little further now to see what is going to work for me and exactly what is involved.

As the menu structure is quite large and complex I want to take the right approach, you can bet your bottom dollar that the menu will want to be ammended and changed as things progress.

Thanks again,

Foxhole