Hi
I want to add a "last updated" line to my product pages, I found a solution in the knowledgebase (http://community.actinic.com/showthread.php?t=45431) and it has the following javascript to paste into the layout:
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!-Begin
var dateObj = new Date(document.lastModified)
document.write("Last Updated: " + dateObj.toLocaleString());
// End -->
</SCRIPT>
However when I insert it I get the error "opening and closing signs are not matching" and also a general syntax error. I dont have a clue on javascript and have tried playing but without success. Can anyone spot an obvious error so I can tweak it, as it appears there is an error with this script?
Thanks in advance
Scottydog
I want to add a "last updated" line to my product pages, I found a solution in the knowledgebase (http://community.actinic.com/showthread.php?t=45431) and it has the following javascript to paste into the layout:
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!-Begin
var dateObj = new Date(document.lastModified)
document.write("Last Updated: " + dateObj.toLocaleString());
// End -->
</SCRIPT>
However when I insert it I get the error "opening and closing signs are not matching" and also a general syntax error. I dont have a clue on javascript and have tried playing but without success. Can anyone spot an obvious error so I can tweak it, as it appears there is an error with this script?
Thanks in advance
Scottydog
Comment