A
Andy Stevenson
Hi,
As subject, I have the following JS in my HTML document & it works fine:
<SCRIPT type="text/JavaScript">
<!--
COPYRIGHT = " : Copyright © Diverse Arts., 2003-";
function writeCopyright()
{
document.write(COPYRIGHT, new Date().getFullYear(), ". All rights
reserved.");
}
var m = "Page updated " + document.lastModified;
var p = m.length-8;
document.write(m.substring(p, 0));
writeCopyright();
// End -->
</SCRIPT>
when I put this in footer.js & call it with <SCRIPT TYPE="text/javascript"
SRC="/js/footer.js"></SCRIPT> I get nothing.
Javascripts not my strong suit, so apologies if I'm missing something
obvious, but anyone got an idea why this won't work?
TIA.
As subject, I have the following JS in my HTML document & it works fine:
<SCRIPT type="text/JavaScript">
<!--
COPYRIGHT = " : Copyright © Diverse Arts., 2003-";
function writeCopyright()
{
document.write(COPYRIGHT, new Date().getFullYear(), ". All rights
reserved.");
}
var m = "Page updated " + document.lastModified;
var p = m.length-8;
document.write(m.substring(p, 0));
writeCopyright();
// End -->
</SCRIPT>
when I put this in footer.js & call it with <SCRIPT TYPE="text/javascript"
SRC="/js/footer.js"></SCRIPT> I get nothing.
Javascripts not my strong suit, so apologies if I'm missing something
obvious, but anyone got an idea why this won't work?
TIA.