Hallo!
Ich hab den Quellcode von ihm genommen und überprüft. Einen kleinen Fehler war drin (auf jeden Fall kleiner als bei meinem ;-)), aber so funktioniert's:
var pixel = 48;
var gestartet = false;
function startAnimation()
{
if(!gestartet)
{
ani = window.setInterval("animation()", 20);
gestartet = true;
}
}
function animation()
{
var elem = document.getElementById("ani").style;
elem.height = pixel + "px";
pixel = pixel + 1;
if ( pixel == 232 ) {
clearInterval(ani);
}
}
window.onload = function() { neu = window.setTimeout("startAnimation()", 3000) };
Bin heute zu sehr in den Welten von MySQL und PHP :)
ciao, ww
--
Ein japanisch-deutsches Gedicht
sh:( fo:| ch:~ rl:( br:> n4:~ ie:% mo:) va:) de:] zu:) fl:( ss:| ls:~ js:)
Ein japanisch-deutsches Gedicht
sh:( fo:| ch:~ rl:( br:> n4:~ ie:% mo:) va:) de:] zu:) fl:( ss:| ls:~ js:)