Hallo!
var clicked = false; // speichert, ob die Animation schon gestartet
// wurde.
document.getElementById("menu").onclick = function() { startAnimation(); clicked = true; }
// startet bei onclick die Funktion
// und speichert, dass die Animation
// gestartet wurde
window.onload = function() { checkClicked() };
function checkClicked() {
if( clicked == false ) { // wenn nicht geklickt, dann...
neu = window.setTimeout("startAnimation()", 10000)
}
else{
alert("Menü schon ausgefahren");
}
}
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:)