Revision 171a38d3
Von Sven Schöling vor etwa 12 Jahren hinzugefügt
templates/webpages/menu/menuv4.html | ||
---|---|---|
7 | 7 |
|
8 | 8 |
<script type="text/javascript"> |
9 | 9 |
<!-- |
10 |
function clockon() {
|
|
10 |
$(function() {
|
|
11 | 11 |
var now = new Date(); |
12 | 12 |
var h = now.getHours(); |
13 | 13 |
var m = now.getMinutes(); |
14 | 14 |
document.getElementById('clock_id').innerHTML = (h<10?'0'+h:h)+":"+(m<10?'0'+m:m); |
15 | 15 |
var timer=setTimeout("clockon()", 10000); |
16 |
} |
|
17 |
window.onload=clockon |
|
16 |
}); |
|
18 | 17 |
//--> |
19 | 18 |
</script> |
Auch abrufbar als: Unified diff
window.onload nicht direkt setzen