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