put at very top...example
[quote]if (!attachOnLoadHandler(function(){onProfileLoad()})) window.onload = function(){onProfileLoad()};
function onProfileLoad() {
[b]var htm="<div id='fcontainer'></div>";
addSideBar("Friends",htm,"frbox");[/b]
//other side bar here[/quote]
if you have groups box or Fan of Box just replace with this
[quote]var htm="<div id='fcontainer'></div>";
addMainBox("Friends",htm,"frbox","groups_2_5");[/quote]
or
[quote]var htm="<div id='fcontainer'></div>";
addMainBox("Friends",htm,"frbox","fanof_2_4");[/quote]
replace with this
[quote]function addMainBox (head,htm,id,bro_id) {
var ul=document.getElementById("[b]friends_2_2[/b]").parentNode;
var bro=document.getElementById(bro_id).parentNode;
try {
var li=document.createElement("li");
} catch(e) {
var li=document.createElement("<li>");
}
li.innerHTML= "<div id='"+id+"' class='commonbox "+id+"'>"+
"<h2>"+head+"</h2>"+
"<div id='content_"+id+"'>"+
"<div class='boxcontent'>"+
htm+
"</div>"+
"</div>"+
"</div>";
ul.parentNode.insertBefore(li,bro);
}[/quote]
Last edited by feruzz (2007-07-04 11:03:38)