Log in

View Full Version : Header Help Please....



chuyengi
08-13-2005, 03:44 PM
Hello,

I am a newbie :)

I am gonna make a website with different contents and I want to have a top navigation that always display on every content.

Example. Home | Forums | News | Gallery | Downloads

When a user click on Home, Forums, Gallery or Downloads and the top still there.

Something similar to this site http://www.osx-e.com/

I've been searching around but cannot find the answer. :(

Any help would be appriciated!

cr3ative
08-13-2005, 04:54 PM
Just write each page and put that code in the top?

chuyengi
08-13-2005, 05:01 PM
I don't like to put the same code over and over on every page.

jscheuer1
08-13-2005, 05:31 PM
Well, that is how it is done on the site you gave as an example. Well, not exactly, there the 'header' code is actually slightly different for each page - to create the 'tab highlighting' effect. The only HTML solution to your 'problem' is to use frames but, that can create real problems. There are ways to do this using javascript and php and other scripting languages. Javascript requires the user to have it turned on. Php and other languages require you have permission to use them from your host and that they be set up on that host.

mwinter
08-13-2005, 07:33 PM
There are ways to do this [include the same content in multiple documents] using javascript and php and other scripting languages.Not forgetting server-side includes (SSI). There is nothing particularly dynamic about SSI - it just inserts content from one file into another - but some hosts may be more inclined to support it, rather than a full-blown scripting language, as it shouldn't so computationally intensive.

Mike