Revision d6d92d88
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() {
|
|
5 |
function clockon() {
|
|
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 |
}) |
|
11 |
} |
|
12 |
$(clockon); |
|
12 | 13 |
//--> |
13 | 14 |
</script> |
14 | 15 |
|
templates/webpages/menu/menuv3.html | ||
---|---|---|
27 | 27 |
return false; |
28 | 28 |
} |
29 | 29 |
|
30 |
$(function() {
|
|
30 |
function clockon() {
|
|
31 | 31 |
var now = new Date(); |
32 | 32 |
var h = now.getHours(); |
33 | 33 |
var m = now.getMinutes(); |
34 | 34 |
document.getElementById('clock_id').innerHTML = (h<10?'0'+h:h)+":"+(m<10?'0'+m:m); |
35 | 35 |
var timer=setTimeout("clockon()", 10000); |
36 |
}); |
|
36 |
} |
|
37 |
$(clockon); |
|
37 | 38 |
//--> |
38 | 39 |
</script> |
39 | 40 |
|
templates/webpages/menu/menuv4.html | ||
---|---|---|
7 | 7 |
|
8 | 8 |
<script type="text/javascript"> |
9 | 9 |
<!-- |
10 |
$(function() {
|
|
10 |
function clockon() {
|
|
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 |
}); |
|
16 |
} |
|
17 |
$(clockon); |
|
17 | 18 |
//--> |
18 | 19 |
</script> |
Auch abrufbar als: Unified diff
(merge) window.onload nicht direkt setzen
-> Funktonsnamen werden ncoh gebraucht.