MediaWiki:Common.js: Unterschied zwischen den Versionen

Aus e-vendo Wiki
Wechseln zu: Navigation, Suche
Zeile 5: Zeile 5:
 
document.getElementById("btt").addEventListener("mouseleave",function(){ this.style.opacity="0.7", this.style.transition="0.5s" });
 
document.getElementById("btt").addEventListener("mouseleave",function(){ this.style.opacity="0.7", this.style.transition="0.5s" });
  
document.getElementById("nb").addEventListener("mouseenter",function(){ this.style.boxShadow="10px 10px 10px #78ae02" });
+
document.getElementsByClassName("nb").addEventListener("mouseenter",function(){ this.style.boxShadow="10px 10px 10px #78ae02" });
document.getElementById("nb").addEventListener("mouseleave",function(){ this.style.boxShadow="10px 10px 10px #000000" });
+
document.getElementsByClassName("nb").addEventListener("mouseleave",function(){ this.style.boxShadow="10px 10px 10px #000000" });

Version vom 24. Mai 2018, 11:47 Uhr

/* Das folgende JavaScript wird für alle Benutzer geladen. */

/* back to top-button */
document.getElementById("btt").addEventListener("mouseenter",function(){ this.style.opacity="1.0", this.style.transition="0.5s" });
document.getElementById("btt").addEventListener("mouseleave",function(){ this.style.opacity="0.7", this.style.transition="0.5s" });

document.getElementsByClassName("nb").addEventListener("mouseenter",function(){ this.style.boxShadow="10px 10px 10px #78ae02" });
document.getElementsByClassName("nb").addEventListener("mouseleave",function(){ this.style.boxShadow="10px 10px 10px #000000" });