FRIHOST • FORUMS • FAQ • TOS • BLOGS • DIRECTORY
You are invited to Log in or Register a Frihost Account!

Navigation Bar Updates in HTML

 


Captain Fertile
I am creating a site using HTML that may contain several hundred pages in the future. Every page has one thing in common, the navigation bar I am creating.

When I add more pages or sections I have to go through every page and remove the old nav bar and add the new updated one. Not a problem with a couple of pages but when the site grows this will become a horrendous chore.

I wonder if there is anyway of adding the bar to every page and when I need to update it I just need to add the new bar without having to manually add it to every page.

Is it possible to do this?

I can also see this being a problem with the copyright statement at the bottom of every page and needing to change it every year. I got around this by simply using a single image with the ŠXYZ.com 2007 drawn on it in the format I wanted and then replacing the image each year. Hence the image will automatically be updated on every page.

Sadly, this is not an option with a navigation bar that will have drop down sections etc.

Other points:
I amnot keen on using JAVA etc because of compatibility issues with browsers and people's security settings.

As well as the graphical style nav bar I would like a text version of the main sections at the bottom of every page too - could this be auto updated on every page too?

Example of text nav:

HOME | About | Products | Services | Links

Any suggestions please?
mariohs
The simplest way to do this is using php to do this.
create a page named header.php, menu.php, footer.php. Then, on the main page, just include the files. If you have any difficulties with this, feel free to post here.
AOP Web Development
hello dude... i think you are familiar with php and there is an include script when you include the a page to other pages....


Well i hope that you do you know that there also an include in html script.... just like you are include php... it's very useful..... You can do it if your editor is frontpage... i used to do it when i'm developing a website. That's one of the features in frontpage....
chris20
To elaborate on what AOP Web Development said, the html includes are called server side includes. Not all hosts support it, but most do, so just check that out. They arent that difficult to use, and if you google server side include, you will find a lot of info on it. With any sites that I make, I tend to use php includes though because php is usually what I write the entire site in.

Hope this helps.
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.