Download filerne fra linket foroven eller forneden og indsæt roenvingDate.js i samme mappe som din html-side, og gør så f.eks. sådan:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"
http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
<title>Brug roenvingDate simpelt</title>
<meta name="keywords" content="roenving,
http://www.eksperten.dk/spm/722312"><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
html,body{height:100%;margin:0px;border:0px;padding:0px;font-family:tahoma,verdana,arial,sans-serif;font-size:small;}
</style>
<script language="javascript" type="text/javascript">
var fastDato = new Date(2007,0,1);//1/1-2007, måned skal være en mindre !-)
function opdater(){
document.getElementById("time").firstChild.nodeValue = fastDato.age(0,0,6,1);
}
window.onload = function(){
opdater();
document.getElementById("dato").firstChild.nodeValue = fastDato.format("");
setInterval("opdater()",1000);
}
</script>
<script type="text/javascript" src="roenvingDate.js"></script>
</head>
<body>
Der er <span id="time"> </span> tilbage til <span id="dato"> </span>
</body>
</html>