<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>SEO voor datum en tijd</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<script type="text/javascript">
<!--
function seo() {
var elements = document.getElementsByTagName('span');
for(var i = 0; i < elements.length; i++) {
var class = elements[i].getAttribute('class');
if(class == 'date') {
var date = elements
[i
].innerHTML
; var year
= parseInt
(split[0]); var month
= parseInt
(split[1]); var day
= parseInt
(split[2]); switch(month) {
case 1:
month = 'januari';
break;
case 2:
month = 'februari';
break;
case 3:
month = 'maart';
break;
case 4:
month = 'april';
break;
case 5:
month = 'mei';
break;
case 6:
month = 'juni';
break;
case 7:
month = 'juli';
break;
case 8:
month = 'augustus';
break;
case 9:
month = 'september';
break;
case 10:
month = 'oktober';
break;
case 11:
month = 'november';
break;
case 12:
month = 'december';
break;
}
elements[i].innerHTML = day + ' ' + month + ' ' + year;
}
} else if(class == 'time') {
var time = elements
[i
].innerHTML
; elements[i].innerHTML = hour + ':' + minute;
}
}
}
}
// -->
</script>
</head>
<body onload="seo();">
<div id="page">
<ul>
<li><span class="time">23:23:00</span></li>
<li><span class="time">12:23:12</span></li>
<li><span class="time">10:00:12</span></li>
<li><span class="date">2005-02-01</span></li>
<li><span class="date">2006-02-02</span></li>
<li><span class="date">2006-12-22</span></li>
<li><span class="date">2007-01-22</span> <span class="time">17:27:00</span></li>
<li><span class="date">2007-01-01</span> <span class="time">12:00:23</span></li>
<li><span class="date">2007-01-12</span> <span class="time">14:12:99</span></li>
</ul>
</div>
</body>
</html>