SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Jul 2000
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,
    I have been searching everywhere for this html
    Wherever you insert the <i think> javascript, it displays the html from that page.. basically i want the logo and menu up the top to be in one html-page and the content of the page in another but it still appears as one (like using asp) so that i can update just one page and it updates the rest automatically.

    I remember adding it into a cgi script so it displayed the logo and banner, then the cgi script.

    I know it is a very basic one line bit of code but i cannot find it anywhere, so i decided to try here

    Thanks


  2. #2
    Freelance Web Designer KeithMcL's Avatar
    Join Date
    Oct 1999
    Location
    Dublin, Ireland
    Posts
    1,125
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Think your talking about SSI (server side includes).

    Just do a search on any major SE for SSI and you should find tutorials on it.

    Here are a couple of quick SSi commands:

    <!--#include file="filename.txt/html"> - This tag includes the content of filename.txt or filename.html in your html page.

    <!--#echo var="value"--> - This tag allows you to include some variables. You can replace value with:
    1. DATE_LOCAL - Local Time
    2. DATE_GMT - Time in GMT
    3. DOCUMENT_NAME
    4. LAST_MODIFIED

    <!--#exec cgi="script.cgi"--> - This tag includes a CGI Script

    Hope this helps.

    Regards,

    ------------------
    KeithMcL
    www.webmasterswork.com
    #1 source for web developer jobs online

  3. #3
    ********* Addict
    Join Date
    Feb 2000
    Location
    NE FL, USA
    Posts
    301
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Don't forget to rename your pages with a .shtml extension.

    Mike

    ------------------
    Street Bikers United - protecting the rights of motorcyclists worldwide.
    Cosmic Custom Airbrush - Hawaii's premier airbrush studio.
    New Life Community Church - Your Christian online community

  4. #4
    SitePoint Member
    Join Date
    Jul 2000
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    <!--#include file="filename.txt/html"> <<

    That's the one I knew it was simple, thanks.


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
  •