La Javascript in questione ha un cronometro di quanto tempo state visitando la pagina in minuti e secondi
Autori: P. Gehrig and U. Dudli www.24fun.com
RITORNA ALLA PAGINA DELLE JAVASCRIPT
RITORNA ALLA PAGINA EFFETTO TESTO SULLA BARRA DI STATO
utenti connessi
Lo script da inserire in html
<script language="JavaScript">
NavName = navigator.appName.substring(0,3);
NavVersion = navigator.appVersion.substring(0,1);
if (NavName != "Mic" || NavVersion>=4)
{
entree = new Date;
entree = entree.getTime();
sortIe();
}
function sortIe()
{
if (NavName != "Mic" || NavVersion>=4)
{
sortie2 = new Date;
sortie = sortie2.getTime();
secondes = Math.floor((sortie-entree)/1000);
minutes = Math.floor(secondes/60);
while (secondes>=60)
{
secondes = secondes-60;
}
window.status='Sono ' + minutes + ' minuti e ' + secondes + ' secondi che state visitando questa pagina.'
; tempo = setTimeout("sortIe()", 1000);
}
}
</script>