Difference between revisions of "MediaWiki:Common.js"
From Systems Group
Line 4: | Line 4: | ||
element.onmouseover = function() { | element.onmouseover = function() { | ||
var bioDiv = document.getElementById("nkrns-bio"); | var bioDiv = document.getElementById("nkrns-bio"); | ||
− | bioDiv. | + | bioDiv.innerHTML = "Hello world!"; |
}; | }; | ||
} | } |
Revision as of 03:54, 27 April 2014
/* Any JavaScript here will be loaded for all users on every page load. */ if (mw.config.get('wgArticleId') == 236) { var element = document.querySelector(".image"); element.onmouseover = function() { var bioDiv = document.getElementById("nkrns-bio"); bioDiv.innerHTML = "Hello world!"; }; }