homepage Welcome to WebmasterWorld Guest from 54.237.99.131
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
Separate navigation menu files
Foxhole



 
Msg#: 4173439 posted 4:32 pm on Jul 20, 2010 (gmt 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

 

tangor

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



 
Msg#: 4173439 posted 5:34 pm on Jul 20, 2010 (gmt 0)

Look at server side includes (SSI). If your host provides, it was the original way to do what you ask.

rocknbil

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



 
Msg#: 4173439 posted 1:32 am on Jul 21, 2010 (gmt 0)

Additionally, you can add

AddHandler server-parsed .html

to your .htaccess to parse .html files; normally SSI's require .shtml extensions by default.

Foxhole



 
Msg#: 4173439 posted 4:35 pm on Jul 21, 2010 (gmt 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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved