[quote=fadly<2>]mohon bantuannya,,
[/quote]
yg jelas musti ada ini...
[spoiler]function addBox (type,head,htm,id,sibling) {
//by marfillaster
//type "LEFT" | "RIGHT"
//head header string
//htm innerHTML string
//id css_id string
//sibling css_id_insertbefore string | null
/* Available default Siblings
LEFT
[b]0[/b] = controlpanel
[b]1[/b] = photos
[b]13 [/b]= blogs
[b]12[/b] = reviews
[b]6[/b] = moreabout
[b]18[/b] = publiccomments
[b]10[/b] = scrapbook
RIGHT
[b]15[/b] = meettrail
[b]2[/b] = friends
[b]14[/b] = googleads
[b]7[/b] = fan
[b]8[/b] = groups
null - appends to last
*/
try {
var li=document.createElement("li");
} catch(e) {
var li=document.createElement("<li>");
}
if(type=="LEFT") {
var ul=document.getElementById("0").parentNode.parentNode;
htm="<div class='boxcontent'>"+htm+"</div>";
}
else var ul=document.getElementById("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);
}
}[/spoiler]
klo gk ada tarok di B...
klo udah tinggal ganti aja seperti kata mas ardy...
[quote]addBox("[b]LEFT[/b]","BLABLABLA","[b]6[/b]");[/quote]
jd
[quote]addBox("[b]RIGHT[/b]","BLABLABLA","[b]14[/b]");[/quote]
moga ngrtozzz....
nmr [b]6[/b] dan [b]14[/b] sesuai penempatan di kode addboxnya...
Last edited by oby_nagnar (2008-10-25 09:52:43)