Results 1 to 6 of 6
  1. #1
    paul's Avatar
    paul is offline Junior
    Join Date
    Nov 2010
    Posts
    250
    Thanks
    7
    Thanked 9 Times in 7 Posts
    Feedback Score
    0

    Default How can I use an external html file for footer and header?

    How can I use an external html file for footer and header?

    I want to have an external html file for my footer and another one for my header. How can I use external html files in my code?

    Thank you in advance.

  2. #2
    manik's Avatar
    manik is offline Om Shanti!
    Join Date
    Apr 2008
    Location
    Boston, USA
    Posts
    13,176
    Thanks
    744
    Thanked 701 Times in 550 Posts
    Blog Entries
    4
    Feedback Score
    4 (100%)

    Default

    few possible ways:
    frames
    iframe
    ssi (server side include)

    SSI probably would be best option.
    Free Classified Ads & BUSINESS/PROFESSIONAL SOCIAL NETWORK


  3. #3
    Chasey is offline Freshman
    Join Date
    Dec 2010
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Feedback Score
    0

    Default

    Do what manik said, SSI is the one i used in my blog.

  4. #4
    mahesh2010 is offline Banned
    Join Date
    Jun 2010
    Location
    USA
    Posts
    194
    Thanks
    0
    Thanked 1 Time in 1 Post
    Feedback Score
    0

    Default

    Quote Originally Posted by paul View Post
    How can I use an external html file for footer and header?

    I want to have an external html file for my footer and another one for my header. How can I use external html files in my code?

    Thank you in advance.
    Hi,
    Write php code in which you can design header and footer and then call them in your html file

  5. #5
    paul's Avatar
    paul is offline Junior
    Join Date
    Nov 2010
    Posts
    250
    Thanks
    7
    Thanked 9 Times in 7 Posts
    Feedback Score
    0

    Default

    Quote Originally Posted by manik View Post
    ssi (server side include)

    SSI probably would be best option.
    Thank you all for your reply.
    I think I will check SSI, for my footer and header.
    Php is another solution I thought about .... but I will try what manik said.

  6. #6
    joe12joe's Avatar
    joe12joe is offline Sophomore
    Join Date
    Jan 2011
    Location
    London
    Posts
    62
    Thanks
    0
    Thanked 1 Time in 1 Post
    Feedback Score
    0

    Default

    If it has not resolved your issue, you may try this for your header and footer:

    Code:
    document.write('<center><p>Copyright 2011, 
      Your company name<br>All Rights 
        Reserved</p></center>')
    You can save this code in .text file.

    In the same way, you can use this code for header:

    Code:
    document.write('<center><img src="your company-logo.gif" 
      align="middle"><br><h1><font color="navy">Your company details</font></h1></center>')
    You can save it as a .text file and use it in the header.

Similar Threads

  1. External nofollow?
    By Rajshree in forum Search Engine Optimization
    Replies: 12
    Last Post: 01-20-2011, 02:00 AM
  2. Internal and External Log Ins
    By Abina in forum ColdFusion
    Replies: 1
    Last Post: 02-02-2010, 11:15 AM
  3. server 2k3 usb external hhd not mounting?
    By bluewhale in forum Windows Server
    Replies: 0
    Last Post: 01-06-2010, 10:24 AM
  4. How to find a pdf file is normal file or shared review file
    By sunshine in forum JavaScript & AJAX
    Replies: 0
    Last Post: 01-04-2010, 11:21 AM
  5. HTML sitemap and XML Sitemap file
    By laster001 in forum Search Engine Optimization
    Replies: 9
    Last Post: 06-29-2009, 05:47 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Partners: BOSTON WEB DEVELOPER, LLC   |   WEBCOSMO CLASSIFIEDS