﻿<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Prelevato ed illustrato su: http://www.web-link.it -->
<!-- Begin
var Today=new Date();
var ThisDay=Today.getDay();
var ThisDate=Today.getDate();
var ThisMonth=Today.getMonth()+1;
var ThisYear=Today.getFullYear();  //included if you wish to insert the year
function DayTxt (DayNumber) {
var Day=new Array();
Day[0]="Domenica";
Day[1]="Lunedì";
Day[2]="Martedì";
Day[3]="Mercoledì";
Day[4]="Giovedì";
Day[5]="Venerdì";
Day[6]="Sabato";
return Day[DayNumber];
}
var DayName=DayTxt(ThisDay);
function MonthTxt (MonthNumber) {
var Month=new Array();
Month[1]="Gennaio";
Month[2]="Febbraio";
Month[3]="Marzo";
Month[4]="Aprile";
Month[5]="Maggio";
Month[6]="Giugno";
Month[7]="Luglio";
Month[8]="Agosto";
Month[9]="Settembre";
Month[10]="Ottobre";
Month[11]="Novembre";
Month[12]="Dicembre";
return Month[MonthNumber];
}
var MonthName=MonthTxt(ThisMonth);
var d = new Date();
var h = d.getHours();
document.write("<table border='3' bgcolor='black'  width='130' height='100' align='center'>"+"<TD>"+"<p align='center'>"+"<font color='white' size='3'>"+DayName+"<br>"+"<font color='orangered' size='+3' >"+ThisDate+"<\/font>"+"<br>"+MonthName+""+"  "+""+ThisYear+"<\/b>"+"<\/font>"+"<\/p>"+"<\/td>"+"<\/tr>"+"<\/table>");
if (h < 2) document.write("<font color='yellow' size='+1' align='center'>"+"<b>"+"Meglio se vai a letto!"+"<\/b>"+"<\/p>");
else if (h < 12) document.write("<font color='yellow' size='+1'align='center'>"+"<b>"+"Buon Giorno!"+"<\/b>"+"<\/P>");
else if (h < 14) document.write("<font color='yellow' size='+1' align='center'>"+"<b>"+"Buon Pranzo!"+"<\/b>"+"<\/P>");
else if (h < 19) document.write("<font color='yellow' size='+1' align='center'>"+"<b>"+"Buon Pomeriggio!"+"<\/b>"+"<\/P>");
else if (h < 23) document.write("<font color='yellow' size='+1' align='center'>"+"<b>"+"Buona Sera!"+"<\/b>"+"<\/P>");
else document.write("<font color='yellow' size='+1' align='center'>"+"<b>"+"Buona Notte"+"<\/b>"+"<\/p>");
//  End -->








