hvis du vil ha ur

hvis du vil ha ur Emil
Med dette script kan du få vist den aktuelle ugedag, dato og tidspunkt på dit websted.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="da" lang="da">
<head>
<title>Vis den aktuelle dato</title>
</head>
<body>

<script type="text/javascript">


var days=new Array(8);
days[0]="Søndag";
days[1]="Mandag";
days[2]="Tirsdag";
days[3]="Onsdag";
days[4]="Torsdag";
days[5]="Fredag";
days[6]="Lørdag";

var months=new Array(13);
months[1]="januar";
months[2]="februar";
months[3]="marts";
months[4]="april";
months[5]="maj";
months[6]="juni";
months[7]="juli";
months[8]="august";
months[9]="september";
months[10]="oktober";
months[11]="november";
months[12]="december";
var time=new Date();
var lmonth=months[time.getMonth() + 1];
var lday=days[time.getDay()];
var date=time.getDate();
var year=time.getFullYear();
var hours=time.getHours();
var minutes=time.getMinutes();
var seconds=time.getSeconds();


document.write("<p>" + lday + " den ");
document.write(date + ". " + lmonth + " " + year);
document.write(" kl. " + hours + ":" + minutes + ":" + seconds + "</p>");

// Slut -->
</script>

</body>
</html>