Atau bro Aan bisa coba pakai code berikut dengan fungsi lain :
[quote]function scoobydoo(){
var box1 = " <div align=\"left\" id=\"cboxdiv\">"+
"<iframe frameborder=\"0\" width=\"300\" height=\"305\" src=\"http://www3.cbox.ws/box/?boxid=2760482&boxtag=6145&sec=main\" marginheight=\"2\" marginwidth=\"2\" scrolling=\"auto\" allowtransparency=\"yes\" name=\"cboxmain\" style=\"border:#EDDEDB 1px solid;\" id=\"cboxmain\"></iframe><br/>"+
"<iframe frameborder=\"0\" width=\"300\" height=\"75\" src=\"http://www3.cbox.ws/box/?boxid=2760482&boxtag=6145&sec=form\" marginheight=\"2\" marginwidth=\"2\" scrolling=\"no\" allowtransparency=\"yes\" name=\"cboxform\" style=\"border:#EDDEDB 1px solid;border-top:0px\" id=\"cboxform\"></iframe>"+
"</div>";
addSideBar("NILMA CHATBOX",box1,"[color=red][b]2[/b][/color]");
var box2 = "<div align='left'><embed allowScriptAccess='never' src='http://www.myspaceprodesigns.com/RedDragon/3.swf' menu='false' quality='high' width='200px' height='300px' name='index' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' flashvars='playList=http://www.myspaceprodesigns.com/xml/aan.xml' wmode='transparent' /><br />"+
"</div>";
addSideBar("MP3",box2,"[color=red][b]2[/b][/color]");
}setTimeout("scoobydoo()",6000);
//addSideBar SCRIPT
function addSideBar(head,htm,div_id) {
var innerHtm=htm;
var cont=
"<div id='"+div_id+"' class='commonbox "+div_id+"'>"+
"<h2>"+head+"</h2>"+
"<div id='content_"+div_id+"'>"+
innerHtm+
"</div>"+
"</div>";
try {
var obj=document.createElement("<li>");
} catch(e) {
var obj=document.createElement("li");
}
var x=document.getElementById("2");
x.parentNode.parentNode.appendChild(obj);
obj.innerHTML=cont;
}[/quote]
Perhatikan [color=red][b]div_id[/b][/color] yang dicetak tebal. Codenya bekerja di profile testq kok
, Untuk mengetest code tsb sebaiknya bro aan tdk memasang code js lain untuk mengecheck code addsidebarnya bekerja apa nggak
Setelah dah dicheck dan bekerja barulah tambahkan code ekstensi JS yang lain diluar atau didalam fungsi onload handlernya.
Last edited by ayunk_razchal (2007-10-21 08:38:36)