Post by iAlex on Apr 22, 2008 18:34:52 GMT -5
This code will remove the gap between your info centre and boards by placing your info centre just above the mark as read bar.
Preview: Click
Main Footer.
Cross Browser.
Open Source.
<style type="text/css">
<!--
#iUpOne{
position: relative;
bottom: 1px;
}
-->
</style>
<script type="text/javascript">
<!--
var iInfoCentre={
iLocation: function(){
if(location.href.match(/action=home/) || !location.href.match(/action/) && !document.postForm && !document.modifyForm && !document.title.match(/\s-\sLogin/)){
this.iHold.iLoop();
}
},
iHold: {
iTd: document.getElementsByTagName('td'),
iLoop: function(){
var i=this.iTd.length-1;
do{
if(this.iTd.item(i).className=="titlebg" && this.iTd.item(i).align=="center" && this.iTd.item(i).colSpan=="2" && this.iTd.item(i).innerHTML.match(/>Info\sCenter</)){
var iParent=this.iTd.item(i).parentNode.parentNode;
var iGrandParent=iParent.parentNode.parentNode.parentNode.parentNode.parentNode;
while(iGrandParent.previousSibling.nodeName.match(/br/i)){
iGrandParent.parentNode.removeChild(iGrandParent.previousSibling);
}
var iMarkAs=iGrandParent.parentNode.getElementsByTagName('table').item(1).firstChild.lastChild;
iMarkAs.firstChild.colSpan='2';
iParent.appendChild(iMarkAs);
iGrandParent.id='iUpOne';
break;
}
i--;
}
while(i>=0);
}
}
};
iInfoCentre.iLocation();
//-->
</script>
Preview: Click
Main Footer.
Cross Browser.
Open Source.
<style type="text/css">
<!--
#iUpOne{
position: relative;
bottom: 1px;
}
-->
</style>
<script type="text/javascript">
<!--
var iInfoCentre={
iLocation: function(){
if(location.href.match(/action=home/) || !location.href.match(/action/) && !document.postForm && !document.modifyForm && !document.title.match(/\s-\sLogin/)){
this.iHold.iLoop();
}
},
iHold: {
iTd: document.getElementsByTagName('td'),
iLoop: function(){
var i=this.iTd.length-1;
do{
if(this.iTd.item(i).className=="titlebg" && this.iTd.item(i).align=="center" && this.iTd.item(i).colSpan=="2" && this.iTd.item(i).innerHTML.match(/>Info\sCenter</)){
var iParent=this.iTd.item(i).parentNode.parentNode;
var iGrandParent=iParent.parentNode.parentNode.parentNode.parentNode.parentNode;
while(iGrandParent.previousSibling.nodeName.match(/br/i)){
iGrandParent.parentNode.removeChild(iGrandParent.previousSibling);
}
var iMarkAs=iGrandParent.parentNode.getElementsByTagName('table').item(1).firstChild.lastChild;
iMarkAs.firstChild.colSpan='2';
iParent.appendChild(iMarkAs);
iGrandParent.id='iUpOne';
break;
}
i--;
}
while(i>=0);
}
}
};
iInfoCentre.iLocation();
//-->
</script>