MediaWiki:Spaghetti.js: Unterschied zwischen den Versionen

Aus C3D2
Zur Navigation springen Zur Suche springen
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 2: Zeile 2:
function fadeIn() {
function fadeIn() {
   fade += 10;
   fade += 10;
   document.getElementById("p-search").style.opacity = fade;
   document.getElementById("globalWrapper").style.opacity = fade;
   if (fade > 250)
   if (fade > 250)
     window.setTimeout("fadeIn()", 50);
     window.setTimeout("fadeIn()", 50);
Zeile 10: Zeile 10:
function fadeOut() {
function fadeOut() {
   fade -= 10;
   fade -= 10;
   document.getElementById("p-search").style.opacity = fade;
   document.getElementById("globalWrapper").style.opacity = fade;
   if (fade < 1)
   if (fade < 1)
     window.setTimeout("fadeIn()", 50);
     window.setTimeout("fadeIn()", 50);
Zeile 16: Zeile 16:
     window.setTimeout("fadeOut()", 50);
     window.setTimeout("fadeOut()", 50);
}
}
alert(document.getElementById("globalWrapper"));
alert(document.getElementById("globalWrapper").style);
alert(document.getElementById("globalWrapper").style.opacity);
fadeIn();
fadeIn();



Version vom 5. März 2006, 01:13 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);
}
alert(document.getElementById("globalWrapper"));
alert(document.getElementById("globalWrapper").style);
alert(document.getElementById("globalWrapper").style.opacity);
fadeIn();

/* no comment */


if (b = document.getElementsByTagName('blink')) {
  b[0].setAttribute('style', 'color:red');
}