1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
| <html>
<head>
<style>
.case_mois{
border: 2px solid #4575b8;
border-collapse:collapse;
width:15px;
text-align:center;
}
</style>
<script>
function start() {
jour_mois = new Array("D","L","M","M","J","V","S","D","L","M","M","J","V","S","D","L","M","M","J","V","S","D","L","M","M","J","V","S");
var row = document.createElement("tr");
for (var i = 1; i <= 28; i++) {
cell = document.createElement("td");
if (document.all)
cell.setAttribute("className", "case_mois");
else
cell.setAttribute("class", "case_mois");
texte = document.createTextNode(jour_mois[i-1]);
cell.appendChild(texte);
row.appendChild(cell);
}
document.getElementById('id_du_tbody').appendChild(row);
document.getElementById('id_du_tbody').setAttribute("border", "1");
}
</script>
</head>
<body onload="start()">
<table width="817" height="323" border="1" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td width="100"> </td>
<td width="500"><table cellpadding="0" cellspacing="0"><tbody id="id_du_tbody"></tbody></table></td>
<td width="100"> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</body>
</html> |
Partager