Forum Moderators: open
E.g.
Write a file like so
[pre]document.write('<p> '
+ ' Hello World '
+ ' <br>Today is the 45<sup>th<\/sup>th of Febvember '
+ ' <\/p> '
);[/pre] SAVE AS
[pre]myDateMessage.js[/pre] in a directory called [pre]myJsFiles[/pre] and then, in the body of each page include this:
[pre]<script type="text/javascript" src="myJsFiles/myDateMessage.js"></script>[/pre] - - - - - - - - - - - - - - - - - - - - -
Alternatively, you could use php...
Write a file (using plain, regular HTML) like so
[pre]<p>
Hello World
<br>Today is the 53<sup>rd</sup>th of Jantober
</p>[/pre] SAVE AS
[pre]myDateMessage.php[/pre] in a directory called [pre]myPhpFiles[/pre] and then, in the body of each page include this:
[pre]<?php [i]include[/i] ("myPhpFiles/myDateMessage.php"); ?>[/pre]
In other words, if I have pages A, B, C, and D, is there a way I can update page A and have pages B, C, and D reflect that update?