Hi, na mych strankach jsem chtel pouzit automaticke zobrazeni data posledni modifikace stranky a tak jsem pouzil konstrukci s "document.lastModified" (presne pouziti viz nize). Bohuzel se mi tam namisto data posledni modifikace objevuje aktualni datum. Na lokale (tj. napr. C:\index.html) to funguje, ale jakmile to pustim pres nejaky server (Apache, PNWS) vnuti se tam aktualni datum. Nevi nekdo co s tim? S pozdravem Wog Tobikuv (mo)psi svet - http://www.borka.cz/tobik *** Ukazka pouziteho skriptu *** <SCRIPT LANGUAGE="JavaScript"><!-- var updText = ""; var updDate = ""; var lastMod = new Date(); lastMod.setTime(Date.parse(document.lastModified)); if (def_lang == "en") { updText = "The last update of this site was on "; updDate = (lastMod.getMonth()+1)+"/"+lastMod.getDate()+"/"+lastMod.getYear(); } else { updText = "Poslední aktualizace stránek proběhla "; updDate = lastMod.getDate()+"."+(lastMod.getMonth()+1)+"."+lastMod.getYear(); } document.writeln(updText + updDate + " "); --> </SCRIPT>
This archive was generated by hypermail 2.1.2 : 04. 09. 2001, 04:14 CEST