BARRA DI STATO CON OROLOGIO DATA E MESSAGGIO SCORREVOLE A SINISTRA

Autori: P. Gehrig and U. Dudli www.24fun.com

PROVA LO SCRIPT

RITORNA ALLA PAGINA DELLE JAVASCRIPT

RITORNA ALLA PAGINA EFFETTO TESTO SULLA BARRA DI STATO

utenti connessi

Lo script da inserire in html

<script>

<!-- Begin 
var osd = " " 
osd +="BENVENUTI"; 
osd +=" "; 
osd +="SUL SITO"; 
osd +=" "; 
osd +="WEBMASTERPAOLO.COM"; 
osd +=" "; 
osd +=" "; 
osd +=" "; 
var timer; 
var msg = ""; 
function scrollMaster () { 
msg = customDateSpring(new Date()) 
clearTimeout(timer) 
msg += " " + showtime() + " " + osd 
for (var i= 0; i < 100; i++){ 
msg = " " + msg; 

scrollMe() 

function scrollMe(){ 
window.status = msg; 
msg = msg.substring(1, msg.length) + msg.substring(0,1); 
timer = setTimeout("scrollMe()", 200); 

function showtime (){ 
var now = new Date(); 
var hours= now.getHours(); 
var minutes= now.getMinutes(); 
var seconds= now.getSeconds(); 
var months= now.getMonth(); 
var dates= now.getDate(); 
var years= now.getYear(); 
var timeValue = "" 
timeValue += ((months >9) ? "" : " ") 
timeValue += ((dates >9) ? "" : " ") 
timeValue = ( months +1) 
timeValue +="/"+ dates 
timeValue +="/"+ years 
var ap="A.M." 
if (hours == 12) { 
ap = "P.M." 

if (hours == 0) { 
hours = 12 

if(hours >= 13){ 
hours -= 12; 
ap="P.M." 

var timeValue2 = " " + hours 
timeValue2 += ((minutes < 10) ? ":0":":") + minutes + " " + ap 
return timeValue2; 

function MakeArray(n) { 
this.length = n 
return this 

monthNames = new MakeArray(12) 
monthNames[1] = "Gennaio" 
monthNames[2] = "Febbraio" 
monthNames[3] = "Marzo" 
monthNames[4] = "Aprile" 
monthNames[5] = "Maggio" 
monthNames[6] = "Giugno" 
monthNames[7] = "Luglio" 
monthNames[8] = "Agosto" 
monthNames[9] = "Settembre" 
monthNames[10] = "Ottobre" 
monthNames[11] = "Novembre" 
monthNames[12] = "Dicembre" 
daysNames = new MakeArray(7) 
daysNames[1] = "Domenica" 
daysNames[2] = "Lunedi" 
daysNames[3] = "Martedi" 
daysNames[4] = "Mercoledi" 
daysNames[5] = "Giovedi" 
daysNames[6] = "Venerdi" 
daysNames[7] = "Sabato" 
function customDateSpring(oneDate) { 
var theDay = daysNames[oneDate.getDay() +1] 
var theDate =oneDate.getDate() 
var theMonth = monthNames[oneDate.getMonth() +1] 
return theDay + " " + theDate + " " + theMonth + " " + "," 

scrollMaster(); 
// End --> 
</script>