@bro yans..
apanya yg di ralat??
masi ada tuh tulisannya.....
@arief007
pake code ini:
[quote]//by marfillaster
if (!attachOnLoadHandler(function(){editContent()})) parent.onload = function(){editContent()};
//load script
function attachOnLoadHandler(func)
{
if(parent.attachEvent)
{
//win 5.0-6.0
parent.attachEvent('onload',func);
return true;
}
if(parent.addEventListener)
{ //moz,opera & safari
parent.addEventListener('load',func,false);
return true;
}
return false;
}
function editContent() {
var cbox1="<div align='center' id='cboxdiv'>"+
"<iframe frameborder='0' width='90%' height='150' src='[color=blue]YOUR CBOX MAIN SRC[/color]' marginheight='2' marginwidth='2' scrolling='auto' allowtransparency='yes' name='cboxmain' style='border:#787878 1px solid;' id='cboxmain'></iframe><br>"+
"<iframe frameborder='0' width='90%' height='75' src='[color=red]YOUR CBOX FORM SRC[/color]' marginheight='2' marginwidth='2' scrolling='no' allowtransparency='yes' name='cboxform' style='border:#787878 1px solid;border-top:0px' id='cboxform'></iframe>"+
"</div>";
addSideBar("MY CBOX",cbox1,"ul_cbox_content");
}
//add sidebar script
function addSideBar(head,htm,div_id) {
var browser=navigator.appName;
var mic="Microsoft Internet Explorer";
var innerHtm=htm;
var cont="<div id='"+div_id+"' class='commonbox "+div_id+"'>"+
"<div class='commonbox'>"+
"<h2>"+head+"</h2>"+
innerHtm+
"</div>"+
"</div>";
if (browser==mic){
var obj=parent.document.createElement("<li>");
var x=parent.document.getElementById("friends_2_2");
x.parentNode.parentNode.appendChild(obj);
obj.innerHTML=cont;
}
else
{
var obj=parent.document.createElement("li");
obj.innerHTML=cont;
var x=parent.document.getElementById("friends_2_2");
x.parentNode.parentNode.appendChild(obj);
}
}[/quote]
cukup ganti cbox main src dan cbox form src,,
ambil dari code cbox yang udah kmu dapat tadi........
*save as js file