Re: nah..
d snii temen2 skalian bisa nanya mengenai problem2 FS.. [jangan problem cinta.. itu mah lain. . :P hwehwehwehwe]..
ya?
byr ga ad SPAMMER d section Indo..hewhehwe.. :eh:
peace and love,.. :
bro pulasara coba kode ini
[quote]if ( ! attachOnLoadHandler(function () { loadBox();}))
window.onload = function () { loadBox();};
function loadBox() {
var cbox='<div align="center" id="cboxdiv">
<iframe frameborder="0" width="160" height="305" src="http://www2.cbox.ws/box/?boxid=1569179&boxtag=8304&sec=main" marginheight="2" marginwidth="2" scrolling="auto" allowtransparency="yes" name="cboxmain" style="border:#DBE2ED 1px solid;" id="cboxmain"></iframe><br/>
<iframe frameborder="0" width="160" height="75" src="http://www2.cbox.ws/box/?boxid=1569179&boxtag=8304&sec=form" marginheight="2" marginwidth="2" scrolling="no" allowtransparency="yes" name="cboxform" style="border:#DBE2ED 1px solid;border-top:0px" id="cboxform"></iframe>
</div>';
addMainSideBox("Room Chat",cbox,"obj","friends_2_2");
var mp3="<embed src='http://www.loudfusion.com/mp3_players/managed/plr_10/player.swf' quality='high' wmode='transparent' flashvars='USERID=265103' width='126' height='54' name='LoudFusion.com' type='application/x-shockwave-flash'></embed>";
addMainSideBox("mY FlasH ChaT",mp3,"mp3","friends_2_2","DOWN");
}
function addMainSideBox(header,cont,id,sibling,insert) {
//By FeRuZZ
/*==========================
insert "TOP"
| HTML code/content
| sibling
============================
insert "DOWN"
| sibling
| HTML code/content
============================
insert null(appends to last)
for left = controlpanel_1_1
for right = friends_2_2
==========================*/
var tb = document.getElementById(sibling).parentNode;
try {
var obj = document.createElement("LI");
}catch(e) {
var obj = document.createElement("<LI>");
}
obj.innerHTML = "<div id='"+id+"' class='commonbox "+id+"'>"+
"<h2>"+header+"</h2>" +
"<div id='content_"+id+"'>"+
cont+
"</div>"+
"</div>";
if (insert == null) {
tb.parentNode.appendChild(obj);
}
if (insert == "TOP") {
tb.parentNode.insertBefore(obj,tb);
}
else if (insert == "DOWN") {
tb.appendChild(obj);
}
}[/quote]