Difference between revisions of "User:Quolnok/vector.js"
Jump to navigation
Jump to search
m |
|||
Line 1: | Line 1: | ||
function columnAreaImage(){ | function columnAreaImage(){} | ||
function columnAreaImageB(){ | |||
if(document.title.split(" ")[0] == "Preferences") | if(document.title.split(" ")[0] == "Preferences") | ||
{ | { | ||
Line 32: | Line 34: | ||
} | } | ||
addOnloadHook( | addOnloadHook(columnAreaImageB); | ||
addOnloadHook(function (){ | addOnloadHook(function (){ | ||
window.onresize = | window.onresize = columnAreaImageB; | ||
}); | }); |
Revision as of 16:45, 27 March 2010
function columnAreaImage(){} function columnAreaImageB(){ 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(columnAreaImageB); addOnloadHook(function (){ window.onresize = columnAreaImageB; });