Site Notice |
---|
We have a limited coverage policy. Please check our coverage page to see which articles are allowed. |
Difference between revisions of "MediaWiki:Gadget-Gadget-FlecheHaut.js"
Jump to navigation
Jump to search
m (1 revision: importing stuff form ISSBW) |
m (1 revision) |
(No difference)
|
Latest revision as of 17:00, 9 December 2012
// gotten from http://fr.wikipedia.org/wiki/MediaWiki:Gadget-FlecheHaut.js on Feburary 23rd, 2010. /* Auteur : Marc Mongenet */ function PageHomeArrows() { for (var level = 2; level <= 6; ++level) { var h = document.getElementById('bodyContent').getElementsByTagName("h" + level); for (var i = 0; i < h.length; ++i) { var arrow = document.createElement("a"); arrow.className = "noprint"; arrow.appendChild(document.createTextNode(" ?")); arrow.href = "javascript:window.scrollTo(0,0); void 0;"; h[i].appendChild(arrow); } } } addOnloadHook(PageHomeArrows);