Jordan
Elite Poster
[M:5000]
Posts: 286
|
Post by Jordan on Dec 30, 2010 3:00:19 GMT
This script centers the area of the mini-profile that is above the avatar section which is the username, rank, stars, custom title, and status message.
Global Footers.
<script type="text/javascript"><!--
if(location.href.match(/on=(displ|search2|viewpr|pmv|(user)?rece|cal\w+iew)/)){ for(var td = document.getElementsByTagName("td"), x = 6; x < td.length; x++){ if(td[x].width == "20%" && td[x].getElementsByTagName("center")[0]){
var _div = document.createElement("div"); _div.style.width = "100%"; _div.style.textAlign = "center";
var _node = td[x].firstChild.nextSibling;
while(_node.nodeName.toUpperCase() != "CENTER"){ _div.appendChild(_node.previousSibling); _node = _node.nextSibling; }
td[x].insertBefore(_div, td[x].firstChild);
} } }
//--></script>
|
|