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