Difference between revisions of "User:Quolnok/vector.js"
Jump to navigation
Jump to search
(Blanked the page) |
|||
Line 1: | Line 1: | ||
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); |
Revision as of 16:09, 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);