MediaWiki:Common.js/embedding.js

// ============================================================ // Experimental EMBEDDING hack for multimedia files // // Used in: Template:Listen // Function: Embeds a file based if the DIV class is "embedMe" //          The "src" is located in the DIV id. // ============================================================

function embedMe { var allDivs = document.getElementsByTagName("div");

for (var i=0; i"; allDivs[i].innerHTML = embedString; }   } } addOnloadHook(embedMe);

// ============================================================ // End of Experimental EMBEDDING hack // ============================================================