MediaWiki:Common.js: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
integrazione template Interprogetto e Betafeature, vedi discussione
rimosso codice obsoleto del 2008 per IE6 con template:Cassetto2, non più esistente
Riga 203:
 
buttonSearch.parentNode.insertBefore(selectBox, buttonSearch.nextSibling);
});
 
/**
* Serve per far funzionare il Cassetto2 con IE6.
*/
function hopMouseOverHandler(event) {
event.data.hopContent.style.display = "block";
}
 
function hopMouseOutHandler(event) {
event.data.hopContent.style.display = "none";
}
 
if (window.attachEvent && !window.XMLHttpRequest) window.attachEvent("onload", function() {
var x = mw.util.$content.get(0).getElementsByTagName("div");
for (var i=0; i<x.length; i++) {
if (x[i].className != "HopFrame") continue;
var y=x[i].getElementsByTagName("div"); var j;
for (j=0; j<y.length; j++)
if (y[j].className == "HopContent") {x[i].hopContent = y[j]; break;}
if (j<y.length) {
$(x[i]).mouseover(x[i], hopMouseOverHandler);
$(x[i]).mouseout(x[i], hopMouseOutHandler);
}
}
});