Welcome to WebmasterWorld Guest from 54.205.170.21

Forum Moderators: incrediBILL

Message Too Old, No Replies

Separate navigation menu files

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

5+ Year Member



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 Jul 20, 2010 (gmt 0)

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



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

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



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 Jul 21, 2010 (gmt 0)

5+ Year Member



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
 

Featured Threads

Hot Threads This Week

Hot Threads This Month