Hi!
Ich möchte 2 Funktionen durch ein onload aufrufen. Wie erreiche ich das? Ich steh total auf der Leitung. Ich weiß nicht, was ich machen muss.
#####################################################################
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<script type="text/javascript">
var aktiv = window.setInterval("Load()",35);
var i = 0;
function Load(){
a = document.getElementById("text").style.fontSize;
b = parseFloat(a) * 1.05;
document.getElementById("text").style.fontSize = b + "em";
i = i + 1;
if (i >= 80){
window.clearInterval(aktiv);
Load2();
}
}
var aktiv2 = window.setInterval("Load2()",5);
var c = 255;
function Load2(){
document.getElementById("text").style.color = "rgb(" + c + "," + c + "," + c + ");";
c = c - 1;
if (c == 0){
window.clearInterval(aktiv2);
}
}
</script>
<style type="text/css">
body{
background-color: #000000;
color: #FFFFFF;
font-family: sans-serif;
font-weight: bold;
}
</style>
</head>
<body onload="Load()">
<div id="text" style="text-align:center; font-size:1em">
TXT
</div>
</body>
</html>
#####################################################################
Es sollten eigentlich die Funktionen Load() und Load2() aufgerufen werden. Ich hoffe, ihr versteht was ich meine und könnt mir helfen.
Vielen vielen Dank!
szia, Lukas