Results 1 to 3 of 3

Thread: JavaScript Headers

  1. #1
    Join Date
    May 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post JavaScript Headers

    Hello, I am new to programming and have a question. I'm sure the answer is already in a post somewhere, but I haven't found it so far if it is.

    I am using Windows XP on a PC with Microsoft Visual Web Developer 2005. I would like to make a JavaScript header so that each pages' header will be uniform.

    I can find scripts for the images and text, clocks, etc. that I may want to include in the header, but cannot find how to link each individual page to the same header. I've tried various things, but nothing seems to work. I'm not sure what I'm doing wrong.

    If someone would please either direct me to where I can find this information or give me some code to refer to the JavaScript file in the "head" of each page, it would be appreciated very much.

    Thanks,

    Walt

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    This is not what Javascript is for. You should use a server-side language for this sort of things, since otherwise people without Javascript enabled will be unable to see your header.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    With MS FP and front page extensions enabled on your server, there is a thing called shared borders for that. Perhaps this (or something like it - Dynamic Web Templates?) is available in Microsoft Visual Web Developer 2005. If so that might be the easiest way. It is a server side method like Twey says, but has the advantage (if included in your design program) of being easier for the novice.
    - John
    ________________________

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

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
  •