SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    if ($zee == "Guru") { $zee--;}
    Join Date
    Nov 2005
    Location
    Karachi - Pakistan
    Posts
    1,134
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Include 1 HTML file to another

    HI

    I have a situation. I am developing a site and that will have almost 100 pages.
    Now on the bottom of each page there will be Links. So what i want is to make i HTML file like footer.htm and include that on the bottom of every page. so what i did is :

    HTML Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    
    <body>
    <p>This is a test to include </p>
    <p>Do u see any thing below this ?????</p>
    [B]<!--#include virtual="footer.htm" -->[/B]
    <p></p>
    </body>
    </html>

    and there is the example of footer.htm
    HTML Code:
    <table width="75%" border="1">
      <tr>
        <td>data</td>
        <td>data</td>
        <td>data</td>
      </tr>
      <tr>
        <td>data</td>
    
        <td>date </td>
        <td>date </td>
      </tr>
      <tr>
        <td>data</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
    
      </tr>
    </table>
    but i can not see the footer file included.

    please help

  2. #2
    SitePoint Wizard gold trophysilver trophybronze trophy dc dalton's Avatar
    Join Date
    Nov 2004
    Location
    Right behind you, watching, always watching.
    Posts
    5,431
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You cant do that with HTML, you need to use SHTML (as long as your site supports it) .... make the extension .shtml and see if it shows up, if it doesn't talk to your hosting provider

  3. #3
    if ($zee == "Guru") { $zee--;}
    Join Date
    Nov 2005
    Location
    Karachi - Pakistan
    Posts
    1,134
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    okay even there is not javascript option for this ?


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
  •