Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 171a38d3

Von Sven Schöling vor mehr als 12 Jahren hinzugefügt

  • ID 171a38d37e97d7c21f6e78fdc344fc1bd12b9ab6
  • Vorgänger 59243943
  • Nachfolger b57e2491

window.onload nicht direkt setzen

Unterschiede anzeigen:

templates/webpages/am/edit_accounts.html
</script>
<script type="text/javascript">
window.onload = function() {
$(function() {
setupDependencies('EditAccount'); //name of form(s). Seperate each with a comma (ie: 'weboptions', 'myotherform' )
};
});
</script>
<form method="post" name="EditAccount" action="am.pl">
templates/webpages/menu/menunew.html
[% USE 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>
templates/webpages/menu/menuv3.html
return false;
}
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>
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