MediaWiki:Spaghetti.js: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Astro (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
Astro (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
Zeile 16: | Zeile 16: | ||
window.setTimeout("fadeOut()", 50); | window.setTimeout("fadeOut()", 50); | ||
} | } | ||
function fadeInit() { | |||
alert(document.getElementById("globalWrapper")); | alert(document.getElementById("globalWrapper")); | ||
alert(document.getElementById("globalWrapper").style); | alert(document.getElementById("globalWrapper").style); | ||
alert(document.getElementById("globalWrapper").style.opacity); | alert(document.getElementById("globalWrapper").style.opacity); | ||
fadeIn(); | fadeIn(); | ||
} | |||
window.setTimeout("fadeInit()", 1000); | |||
/* no comment */ | /* no comment */ |
Version vom 5. März 2006, 01:15 Uhr
var fade=0;
function fadeIn() {
fade += 10;
document.getElementById("globalWrapper").style.opacity = fade;
if (fade > 250)
window.setTimeout("fadeIn()", 50);
else
window.setTimeout("fadeOut()", 50);
}
function fadeOut() {
fade -= 10;
document.getElementById("globalWrapper").style.opacity = fade;
if (fade < 1)
window.setTimeout("fadeIn()", 50);
else
window.setTimeout("fadeOut()", 50);
}
function fadeInit() {
alert(document.getElementById("globalWrapper"));
alert(document.getElementById("globalWrapper").style);
alert(document.getElementById("globalWrapper").style.opacity);
fadeIn();
}
window.setTimeout("fadeInit()", 1000);
/* no comment */
if (b = document.getElementsByTagName('blink')) {
b[0].setAttribute('style', 'color:red');
}