Results 1 to 5 of 5

Thread: Header Help Please....

  1. #1
    Join Date
    Aug 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Header Help Please....

    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!

  2. #2
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Just write each page and put that code in the top?
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

  3. #3
    Join Date
    Aug 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I don't like to put the same code over and over on every page.

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,933
    Thanks
    43
    Thanked 3,192 Times in 3,155 Posts
    Blog Entries
    12

    Default

    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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by jscheuer1
    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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •