tinggal masukin d bagian merah ini aja.
[quote]if ( ! attachOnLoadHandler(function () { loadBox();}))
window.onload = function () { loadBox();};
function loadBox() {
var cbox1="<div align='center' id='cboxdiv'>"+
"<iframe frameborder='0' width='100%' height='380' src='http://www4.cbox.ws/box/?boxid=3252654&boxtag=4917&sec=main' marginheight='2' marginwidth='2' scrolling='auto' allowtransparency='yes' name='cboxmain' id='cboxmain'></iframe><br>"+
"<iframe frameborder='0' width='100%' height='117' src='http://www4.cbox.ws/box/?boxid=3252654&boxtag=4917&sec=form' marginheight='2' marginwidth='2' scrolling='no' allowtransparency='yes' name='cboxform' id='cboxform'></iframe>"+
"</div>";
addNewBox("Message Board",cbox1,"cbox1","6","INSERTBEFORE");
[color=red]FUNGSI ADD BOX LAIN NYA. GUNAKAN FORMAT SEPERTI DI ATAS.[/color]
var radio="<div align='center' id='radio'><iframe frameborder='0' scrolling='no' height='330' width='100%' src='http://h1.ripway.com/andry/radio.php'></iframe></div>";
addNewBox("Radio Blog Beta V.3",radio,"radio_content","2","APPEND");
}
function addNewBox(header,cont,id,x,insert) {
//By FeRuZZ
//addNewBox v1.1
// "INSERTBEFORE" | "APPEND" | null = appends to last box
/*available "x"
left side ||<div class='boxcontent'>||
"0" = controlpanel
"1" = photos
"13" = blogs
"12" = reviews
"6" = moreabout
"18" = publiccomments
"10" = scrapbook
right side
"15" = meettrail
"2" = friends
"14" = ads
"7" = fan
"8" = groups
*/
if (x == "0" || /*controlpanel*/
x == "1" || /*photos*/
x == "13" || /*blogs*/
x == "12" || /*reviews*/
x == "6" || /*moreabout*/
x == "18" || /*publiccomments*/
x == "10" /*scrapbook*/) {
var addCont = document.getElementById(x).parentNode;
cont = "<div class='boxcontent'>"+cont+"</div>";
}
else addCont = document.getElementById(x).parentNode;
var elem = document.createElement("LI");
elem.innerHTML = "<div class='commonbox "+id+"' id='"+id+"'>"+
"<h2>"+header+"</h2>"+
"<div id='content_"+id+"'>"+cont+"</div>"+
"</div>";
if (insert == "INSERTBEFORE") addCont.parentNode.insertBefore(elem,addCont);
else if (insert == "APPEND") addCont.appendChild(elem);
if (insert === null) {
addCont.parentNode.appendChild(elem);
}
}[/quote]
Last edited by andHa (2008-03-27 16:19:36)