MediaWiki:Vector.js
Jump to navigation
Jump to search
Note: After saving, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
function columnAreaImage(){ if(document.title.split(" ")[0] == "Preferences") { return; } var divS; if (document.getElementById ) { divS = document.getElementById("column-content"); } else if (document.all ) { divS = document.all["column-content"]; } else { return; } if ( divS && divS.style ){ var divSHval; if (divS.style.pixelHeight) { divSHval= divS.style.pixelHeight; } else { divSHval= divS.offsetHeight; } if(Number(divSHval) >1176){ //1136=768(number bigger than background image and side buttons)+imgheight(370) divS.style.backgroundImage = "url(/images/a/aa/VectorSidebarInfosphere.png)"; divS.style.backgroundPosition = "bottom left"; divS.style.backgroundRepeat = "no-repeat"; } } } addOnloadHook(columnAreaImage);