Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- Using javascript for "preload" and common borders


mivox - 7:25 pm on Jun 27, 2002 (gmt 0)


Personally, I would think site-wide footers might be better done with server side includes... (assuming your host allows that)

You create the footer as a stand-alone file, and then insert a line in your page code where you want the footer to appear:
<!--#include file="footer.html" -->

(make sure the footer.html file is in the same directory as the pages you want it to appear on)

Most hosts will require pages that use server side includes (SSI) to use the extension ".shtml" but (This won't work on Windows hosting), you can often get around that by creating a file called ".htaccess" (saved as a plain text file with a plain text program like notepad), that has the following line in it:
AddHandler server-parsed .html .htm .shtml

If your host's server is configured to allow that trick, you can keep the regular .htm or .html extensions on your pages, and still use SSI calls for your footer file.

(There are a lot of other really cool things you can do with your .htaccess file, but that's all you need to know for SSI in a plain .html file. ;) )


Thread source:: http://www.webmasterworld.com/javascript/143.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com