[quote=KhErMiNaToR]:evil: :evil: :evil:
@bro yans..
apanya yg di ralat??
masi ada tuh tulisannya..... :P
@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 :eh:[/quote]
klo kode cbox aq spt di bwh in
<!-- BEGIN CBOX -
www.cbox.ws -->
<div align="center" id="cboxdiv">
<iframe frameborder="0" width="160" height="305" src="http://www5.cbox.ws/box/?boxid=158418&boxtag=p1ethy&sec=main" marginheight="2" marginwidth="2" scrolling="auto" allowtransparency="yes" name="cboxmain" style="border: 0px solid;" id="cboxmain"></iframe><br/>
<iframe frameborder="0" width="160" height="75" src="http://www5.cbox.ws/box/?boxid=158418&boxtag=p1ethy&sec=form" marginheight="2" marginwidth="2" scrolling="no" allowtransparency="yes" name="cboxform" style="border: 0px solid;border-top:0px" id="cboxform"></iframe>
</div>
<!-- END CBOX -->
bs ga tolong di buatin ga bang?
nech kode paan nya bang?
http://cow_cristian.cbox.ws
thanks....
Last edited by ily (2008-02-05 13:51:12)