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().getFullY ear(), ". All rights
reserved.");
}
var m = "Page updated " + document.lastMo dified;
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.
--
Andy
"A little pain never hurt anyone!" Sam, aged 11
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().getFullY ear(), ". All rights
reserved.");
}
var m = "Page updated " + document.lastMo dified;
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.
--
Andy
"A little pain never hurt anyone!" Sam, aged 11
Comment