Difference between revisions of "User:Quolnok/vector.js"
Jump to navigation
Jump to search
m |
|||
Line 32: | Line 32: | ||
} | } | ||
addOnloadHook(columnAreaImage); | addOnloadHook(columnAreaImage); | ||
addOnloadHook(function (){ | |||
window.onresize = columnAreaImage; | |||
}); |
Revision as of 16:40, 27 March 2010
function columnAreaImage(){ if(document.title.split(" ")[0] == "Preferences") { return; } var el = document.getElementById("columnAreaImage"); var newdiv = el; if(el == null) { newdiv = document.createElement('div'); newdiv.setAttribute('id', 'columnAreaImage'); } newdiv.style.bottom = 0; if(el == null) { newdiv.style.backgroundImage = "url(/images/a/aa/VectorSidebarInfosphere.png)"; newdiv.style.backgroundPosition = "bottom left"; newdiv.style.backgroundRepeat = "no-repeat"; newdiv.style.position = "absolute"; newdiv.style.left = "0px"; newdiv.style.width = "377px"; newdiv.style.height = "408px"; newdiv.style.zIndex = "-1" document.body.appendChild(newdiv); } } addOnloadHook(columnAreaImage); addOnloadHook(function (){ window.onresize = columnAreaImage; });