#5 14 Aug 2009 3:52:45 AM |
Threads: 0 Posts: 2
Web Maven___ |
Re: Web Design: How to insert HTML (like a header/footer) into a file?I agree with justwondering that SSI (Server Side Includes) is the best way to do what you're asking, at least on an Apache server. If it's a Windows server, you would have to use ASP. But you say you cannot use either ASP or SSI. It is possible to use client-side logic, such as JavaScript. This wouldn't be as clean as server-side logic, because it will not work for everyone: some (perhaps 10-20%) of your visitors will have scripting disabled. Many people do use JavaScript for site navigation, and sometimes for common headers and footers. If for some reason you were sure that all, or nearly all, of your site's visitors would be sure to have scripting turned on, then this might be the way to go. |
| Quote Reply |
|
|