Forum Moderators: open
I'm wondering about a javascript. i don't know anything about it.Thats why i'm trying to get some help from u guys=))
i'm trying to implement a last update script into xhtml,saved as external file.The problems is i can't make it work:P..need some how to?
And anyone with tips about a "last updated" javascript that works with xhtml and can be shown with no problems at all in these two browsers such as Firefox and Ie? T
Tnx
Greetings
Splendor
[autisticcuckoo.net...]
(amongst others)
application/xhtml+xml to Mozilla/Firefox. If you don't know what I'm talking about, then you aren't doing it! ;) If you are talking about an XHTML page served as standard HTML, then your problem lies elsewhere.
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-Strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="sv" lang="sv">
<head>
<title>TEST</title>
<link rel="stylesheet" type="text/css" href="mod.css" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<script type="text/javascript">
<!-- hide script begin
var m = "Last Updated " + document.lastModified;
var p = m.length-8;
document.writeln("<center>");
document.write(m.substring(p, 0));
document.writeln("</center>");
// End -->
</script>
</body>
</html>