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