Post by wormopolis on Jul 7, 2010 23:06:19 GMT -6
Browser tested: IE and FF
placement: global header
turns logo image into a background image behind the menu buttons, and moves page title and hey X below banner.
NOTE: YourShop code is apparently incompatible with the banner remodel. as of now, I do not know why
preview: Click Here
placement: global header
turns logo image into a background image behind the menu buttons, and moves page title and hey X below banner.
NOTE: YourShop code is apparently incompatible with the banner remodel. as of now, I do not know why
<script type="text/javascript">
<!--
// Banner remodel - 1.6
// by Wormopolis - wormocodes.proboards.com
// puts logo behind menu buttons and moves hey X and page title down
// keep header intact
// it will move these 2 areas below the logocell if kept
var keeppagetitle=false; // the <<home>> part
var keepheyyou=false; // the hey x, you have n messages part
logocell=document.getElementsByTagName('td')[1];
tmp=new Image();
tmp.src=logocell.firstChild.firstChild.src;
function testFunc(logocell) {
tds=document.getElementsByTagName('td');
nwbgimg=logocell.firstChild.firstChild.src;
nwcellht=logocell.firstChild.firstChild.clientHeight;
nwcellwd=logocell.firstChild.firstChild.clientWidth;
logocell.style.height=nwcellht;
tds[0].parentNode.parentNode.parentNode.style.width=nwcellwd;
logocell.style.backgroundImage="url('"+nwbgimg+"')";
logocell.style.backgroundRepeat="no-repeat";
logocell.style.backgroundPosition="center center";
logocell.vAlign="bottom";
logocell.firstChild.firstChild.style.display="none";
heyXcell=tds[2];
menucellbar=tds[3].getElementsByTagName('table')[0].rows[0];
menubtntbl=tds[4].getElementsByTagName('table')[0];
menubtntbl.width="";
pagetitle=tds[1].getElementsByTagName('font')[1];
if (keeppagetitle) menucellbar.cells[0].appendChild(pagetitle.cloneNode(true));
pagetitle.style.display="none";
menucellbar.cells[0].width="";
heyXcell.align='right';
if (keepheyyou) menucellbar.appendChild(heyXcell.cloneNode(true));
heyXcell.style.display="none";
logocell.appendChild(menubtntbl);
menucellbar.cells[0].className="welcomebg";
menubtntbl.rows[0].cells[0].style.backgroundColor="transparent";
menubtntbl.rows[0].cells[0].className="";
}
logocell.firstChild.firstChild.onLoad=testFunc(logocell);
// -->
</script>
preview: Click Here