hey yo feruzz.. check out the generator of wvm marfillaster fixed the php, the js and css.. once again..

and take a look at this.. some new words to encounter..

[quote]//by marfillaster
function addBox ([b]type[/b],head,htm,id,[b]sibling[/b]) {
try {
var li=document.createElement("li");
} catch(e) {
var li=document.createElement("<li>");
}
if(type=="[b]LEFT[/b]") {
var ul=document.getElementById("controlpanel_1_1").parentNode.parentNode;
htm="<div class='boxcontent'>"+htm+"</div>";
}
else var ul=document.getElementById("friends_2_2").parentNode.parentNode;
li.innerHTML="<div id='"+id+"' class='commonbox "+id+"'>"+
"<h2>"+head+"</h2>"+
"<div id='content_"+id+"'>"+
htm+
"</div>"+
"</div>";
if(sibling==null) ul.appendChild(li);
else {
sibling=document.getElementById(sibling).parentNode;
ul.insertBefore(li,sibling);
}
}[/quote]
explains to us that...
[quote]//type "LEFT" | "RIGHT"
//head header string
//htm innerHTML string
//id css_id string
//sibling css_id_insertbefore string | null
/* Available default Siblings
LEFT
controlpanel_1_1
photos_1_2
blogs_1_3
reviews_1_4
moreabout_1_5
publiccomments_1_7
scrapbook_1_8
RIGHT
meettrail_2_1
friends_2_2
ads_2_3
fanof_2_4
groups_2_5
null - appends to last
*/[/quote]
isnt it nice??
Last edited by xavierkym (2007-08-26 15:39:28)