Orario completo, con immagini e aggiornante (i due punti LAMPEGGIANO)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
<img name="o2" /><img name="o1" /><img name="p1" /><img name="m2" /><img name="m1" /><img name="p2" /><img name="s2" /><img name="s1" /> <script> var percorso="https://www.valcon.it/javascript/wp-content/uploads/" var lamp=true; function anima_cifre() { var data =new Date(); var ore =data.getHours(); var minuti =data.getMinutes(); var secondi=data.getSeconds(); x=ore%10; document.o1.src=percorso+x+".gif"; x=Math.floor(ore/10); document.o2.src=percorso+x+".gif"; x=minuti%10; document.m1.src=percorso+x+".gif"; x=Math.floor(minuti/10); document.m2.src=percorso+x+".gif"; x=secondi%10; document.s1.src=percorso+x+".gif"; x=Math.floor(secondi/10); document.s2.src=percorso+x+".gif"; } function anima_punti() { lamp=!lamp; if(lamp) { document.p1.src=percorso+"punti.gif"; document.p2.src=percorso+"punti.gif"; } else { document.p1.src=percorso+"null.gif"; document.p2.src=percorso+"null.gif"; } } setInterval("anima_cifre()", 500); setInterval("anima_punti()", 250); </script> |