|
|
 |
|
|
Pages: 1
html includes?
(Click here to view the original thread with full colors/images)
Posted by: TheHaunt
Is there any way (without using frames) to include a seperate html file on to the "current page"? I'm working on a nav bar and I don't want to have to manually include the code on every page, it'd be so much nicer if I could just say "here, load this on every page" instead.
Thanks 4 your help!
Nick
Posted by: DemonBob
http://www.htmlgoodies.com/beyond/w...cle.php/3473341
Posted by: TheHaunt
Thank you! You just made my year!
Nick
Posted by: DemonBob
np,
read the document closely, becuase you may have to use .shtml extension on your pages to get it work,
like the index.html would be index.shtml and the navbar you are including would still be navbar.html
Posted by: sidefx52
you could use javascript (note: I didn't read the article that demonbob provided, so I may be repeating info) to call a javascript file
<script language="JavaScript" src="[path to .js file]"></script>
and then use javascript to write the html in the .js file
document.write("<p>Some text blah blah</p>");
Posted by: Outlaw
Thanks, Bob. I'm working on my first site, and this is gonna save me alot of time and work.
|
|
|
|
|