Problem: "Last update" auf Website

Hi,

Ich möchte das "last update" auf meiner Website automatisieren. Ich bin kein großer JS Könner, hab aber folgendes zusammengebastelt:
<html>
<head>

</head>
<body onLoad="lastModified()">
<div style="font-size:9pt;">
<script type="text/javascript">
<!--
var default_date = "unknown";
var lm = document.lastModified;
var day;
var month;
var year;
var date;
var time;

//parsing if date is ok
if (Date.parse(lm) == 0) {
lm = default_date;
}

//cutting to retrieve single elements
month = lm.substring(0,2);
day = lm.substring(3,5);
year = lm.substring(6,10);
time = lm.substring(11,19);

//recreating date in european format
date = day + "." + month + "." + year;
document.write("Last Modified on: " + date + " at " + time);
// -->
</script>
</div>
</body>
</html>

Jetzt hab ich das Script auf meine Googlepage zum Testen und auf mein Lycos Webspace.

Das Problem:
Auf der Googlepage passt alles, auf Lycos, zeigt es mir das aktuelle Datum + Uhrzeit an. Bei jedem Refresh aktualisiert sich die Zeit.... ?(

Liegt das Problem an meinem Script odr am Server der meine Seite hostet??

Danke,
kito
 
Hi

Wird wohl imho daher kommen, dass Lycos noch seine Scripts mit auf die Seite packt und somit ist sie ja geändert worden...

Gruß,
boernd
 
Original von boernd
Hi

Wird wohl imho daher kommen, dass Lycos noch seine Scripts mit auf die Seite packt und somit ist sie ja geändert worden...

Gruß,
boernd

Ja eben....das hab ich mir auch schon gedacht.... *seufz* zu blöd :(
 
Zurück
Oben