Revision 171a38d3
Von Sven Schöling vor etwa 12 Jahren hinzugefügt
templates/webpages/am/edit_accounts.html | ||
---|---|---|
8 | 8 |
</script> |
9 | 9 |
|
10 | 10 |
<script type="text/javascript"> |
11 |
window.onload = function() {
|
|
11 |
$(function() {
|
|
12 | 12 |
setupDependencies('EditAccount'); //name of form(s). Seperate each with a comma (ie: 'weboptions', 'myotherform' ) |
13 |
};
|
|
13 |
});
|
|
14 | 14 |
</script> |
15 | 15 |
|
16 | 16 |
<form method="post" name="EditAccount" action="am.pl"> |
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 |
|
templates/webpages/menu/menuv3.html | ||
---|---|---|
27 | 27 |
return false; |
28 | 28 |
} |
29 | 29 |
|
30 |
function clockon() {
|
|
30 |
$(function() {
|
|
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 |
} |
|
37 |
window.onload=clockon |
|
36 |
}); |
|
38 | 37 |
//--> |
39 | 38 |
</script> |
40 | 39 |
|
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