Post by Peter on Apr 29, 2006 13:37:40 GMT
This code moves the contact icons from the mini profile (email, pm, aim, msn etc) and places them opposite the IP information. I didn't want it under the signature, as I think it looks better where it is now.
Note: this code will automatically remove the edit by information.
<script type="text/javascript">
<!--
/*
Contact icons opposite IP
Created By Peter
Copyright © 2005 - expertsonline.pixeldepth.net
All Rights Reserved
This code may not be redistributed without express permission from the creator.
This header must stay intact at all times.
*/
function moveIcons(){
var iCount = 0, icons = null;
var iCell = document.getElementsByTagName("td");
for(c = 0; c < iCell.length; c ++){
if(iCell.item(c).className.match(/windowbg/) && iCell.item(c).width == "20%" && iCell.item(c).innerHTML.match(/Posts:/)){
var iCenter = iCell.item(c).getElementsByTagName("center").item(0);
icons = new Object();
gotIcons = false
for(n = 1; n < iCenter.childNodes.length; n ++){
if(iCenter.childNodes.item(n).nodeName.match(/^(a|img)$/i)){
gotIcons = true;
icons[iCount ++] = {
contact: iCenter.childNodes.item(n)
};
iCenter.removeChild(iCenter.childNodes.item(n));
n --;
}
}
if(gotIcons){
while(iCenter.hasChildNodes() && iCenter.childNodes.length > 3){
iCenter.removeChild(iCenter.lastChild);
}
}
}
if(iCell.item(c).align == "right" && iCell.item(c).innerHTML.match(/Logged|\d+\.\d+\.\d+/) && iCell.item(c).previousSibling){
iCell.item(c).previousSibling.removeChild(iCell.item(c).previousSibling.firstChild);
if(icons != null){
for(i in icons){
iCell.item(c).previousSibling.appendChild(icons.contact);
iCell.item(c).previousSibling.appendChild(document.createTextNode(" "));
}
icons = null;
}
}
}
}
if(location.href.match(/=display/i)){
moveIcons();
}
//-->
</script>
Global footer
Note: this code will automatically remove the edit by information.
<script type="text/javascript">
<!--
/*
Contact icons opposite IP
Created By Peter
Copyright © 2005 - expertsonline.pixeldepth.net
All Rights Reserved
This code may not be redistributed without express permission from the creator.
This header must stay intact at all times.
*/
function moveIcons(){
var iCount = 0, icons = null;
var iCell = document.getElementsByTagName("td");
for(c = 0; c < iCell.length; c ++){
if(iCell.item(c).className.match(/windowbg/) && iCell.item(c).width == "20%" && iCell.item(c).innerHTML.match(/Posts:/)){
var iCenter = iCell.item(c).getElementsByTagName("center").item(0);
icons = new Object();
gotIcons = false
for(n = 1; n < iCenter.childNodes.length; n ++){
if(iCenter.childNodes.item(n).nodeName.match(/^(a|img)$/i)){
gotIcons = true;
icons[iCount ++] = {
contact: iCenter.childNodes.item(n)
};
iCenter.removeChild(iCenter.childNodes.item(n));
n --;
}
}
if(gotIcons){
while(iCenter.hasChildNodes() && iCenter.childNodes.length > 3){
iCenter.removeChild(iCenter.lastChild);
}
}
}
if(iCell.item(c).align == "right" && iCell.item(c).innerHTML.match(/Logged|\d+\.\d+\.\d+/) && iCell.item(c).previousSibling){
iCell.item(c).previousSibling.removeChild(iCell.item(c).previousSibling.firstChild);
if(icons != null){
for(i in icons){
iCell.item(c).previousSibling.appendChild(icons.contact);
iCell.item(c).previousSibling.appendChild(document.createTextNode(" "));
}
icons = null;
}
}
}
}
if(location.href.match(/=display/i)){
moveIcons();
}
//-->
</script>
Global footer