[quote=Ladybug]aku coba ganti js jadi txt koq malah gag jalan yaaa?
Oiya, aku mau tanya, gimana caranya masukin cbox. Kan ada script 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='YOUR CBOX MAIN SRC' 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='YOUR CBOX FORM SRC' 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]
tapi aku g tau mana yg dimaksud CBOX MAIN SRC dan CBOX FORM SRC. Mohon pencerahannya..
[/quote]
CBOX MAIN SRC itu alamat mesage body cboxnya (yg ada pesen2 dari orang2)
CBOX FORM SRC itu form buat masukin input name, email, message
ini bisa didapetkan pada admin cboxnya, pls login ke
http://cbox.ws (bagian quick setup)
nanti bakalan ada kode berisikan alamat/SRC utk MAIN maupun FORM nya
formatnya biasanya:
<">(MAIN SRC)
<">(FORM SRC)
ganti XXXX dgn User ID Cbox mu
Last edited by parlay (2007-12-12 05:32:47)