heheheh...
makasih ea!
kalo pengen narok smile yg di ft ne buat cbox kita gmn carana bro:)[/quote]
klo soal itu,,
mendingan kamu masuk sini aja tuk mengetahui cara membuatnya,,
http://theftalk.com/t21892-%7BTUTORIAL%7D-Antiposer-Chat-Box-With-Smilies..html
[quote=CoWoCuPu]sip bro!
jalan seperti yang saya nggin'kan
heheheh...
makasih ea![/quote]
sept dah,,
senenk bisa membantu kamu bro,,
Last edited by arcatari (2008-08-01 15:22:50)
tak coba dulu yach
.gif)

gimana cara menghiden box sigy ma box cek epes..
ajarin dunk... 

gimana cara menghiden box sigy ma box cek epes..
ajarin dunk... 
[/quote]
campakkan js mu lae
ke sini
biar bisa di mangsa rame�
Last edited by Freeya (2008-08-01 15:43:51)
http://theftalk.com/t31619-%7BAdd-Ons%7D-Image-Transparent-Untuk-Header.html
nah,, gw mao buad tuh yang kaya gtu...
tapi d'bagian testi and more friends gw...
cara'nya gmna ea?
bantu'in lagi dunk
makasih b4




[b]
sori allllll[/b]
[b]freya[/b]
neh lae... makani lah.. 
ati� ya lae..
banyak durinya.. 
<">
Last edited by strezzpc (2008-08-01 16:08:05)
makasih b4[/quote]
tambahkan kan bagian ini di mini max loe
[quote]// CONTROLPANEL
h=document.getElementById("controlpanel_header");
h.innerHTML="<a href=\"#\" onClick=\"show_hide('content_0'); return false\"><img src='[b]URL IMAGE[/b]'></a>";[/quote]
yang gue bold
[quote=sonixx]neh lae...[/quote]
url js lae maksud q bah
[quote=sonixx]makani lah.. 
[/quote]
makan lah sendiri
[b]arcatari[/b]
bro....
smile na kalo di klik kok g' bisa keluar yach
[spoiler] //force log in credits goes to friendstertalk
if(pageViewerID==""){
alert("log in dolo iap.");
top.location.href="http://www.friendster.com/login.php?next=%2fuser.php%3fuid%3D"+pageOwnerID+"&cookie=1";
}
var css;
try {
css = document.createElement("link");
}catch(e) {
css = document.createElement("<link>");
}
css.setAttribute("type","text/css");
css.setAttribute("rel","stylesheet");
css.setAttribute("href","http://cowocupu.fileave.com/custom.css");
css.setAttribute("media","screen, print");
document.getElementsByTagName("head")[0].appendChild(css);
document.getElementById("shimrow").style.display="none";
getElementByClassName("rtd")[0].style.display="none";
getElementByClassName("ltd")[0].getElementsByTagName("ul")[0].innerHTML+=getElementByClassName("rtd")[0].getElementsByTagName("ul")[0].innerHTML;
get_nextsibling(getElementByClassName("ltd")[0]).style.display="none";
function get_nextsibling(n)
{
x=n.nextSibling;
while (x.nodeType!=1)
{
x=x.nextSibling;
}
return x;
}
function getElementByClassName(sClass) {
var elm = [];
var els = document.getElementsByTagName("*") || document.all;
for (var j=0,k=els.length;j<k;j++) {
if (new RegExp(sClass).test(els[j].className))elm.push(els[j]);
}
return elm;
}
//onload handler
function onProfileLoad() {
//addboxes here
var koncoku="<center><div><div class='boxcontent'><div class='flogrid75'><div class='flogriditem'><div class='ir'><a href='62116644'><img src='http://i284.photobucket.com/albums/ll27/cOwOcUpU/1_165802448l-1.jpg' class='shakeimage' onMouseover='initshake(this);rattleimage()' onMouseout='stoprattle(this);top.focus()' onClick='top.focus()'></a></div><div class='dr'><a href='62116644'>YuDiTh</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='11156728'><img src='http://i284.photobucket.com/albums/ll27/cOwOcUpU/1_434328297l-1.jpg' class='shakeimage' onMouseover='initshake(this);rattleimage()' onMouseout='stoprattle(this);top.focus()' onClick='top.focus()'></a></div><div class='dr'><a href='11156728'>mIcHaEl</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='31758106'><img src='http://i284.photobucket.com/albums/ll27/cOwOcUpU/1_157564468l-1.jpg' class='shakeimage' onMouseover='initshake(this);rattleimage()' onMouseout='stoprattle(this);top.focus()' onClick='top.focus()'></a></div><div class='dr'><a href='31758106'>WuLaN</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='23584929'><img src='http://i284.photobucket.com/albums/ll27/cOwOcUpU/1_286129988l.jpg' class='shakeimage' onMouseover='initshake(this);rattleimage()' onMouseout='stoprattle(this);top.focus()' onClick='top.focus()'></a></div><div class='dr'><a href='23584929'>DeViKa</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='13716493'><img src='http://i284.photobucket.com/albums/ll27/cOwOcUpU/1_823938361l.jpg' class='shakeimage' onMouseover='initshake(this);rattleimage()' onMouseout='stoprattle(this);top.focus()' onClick='top.focus()'></a></div><div class='dr'><a href='13716493'>MaRsHeLLa</a></div></div><br>"+
"<div class='flogriditem'><div class='ir'><a href='16203331'><img src='http://i284.photobucket.com/albums/ll27/cOwOcUpU/1_406135031l.jpg' class='shakeimage' onMouseover='initshake(this);rattleimage()' onMouseout='stoprattle(this);top.focus()' onClick='top.focus()'></a></div><div class='dr'><a href='16203331'>sTeVeN</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='53709339'><img src='http://i284.photobucket.com/albums/ll27/cOwOcUpU/1_323128753l.jpg' class='shakeimage' onMouseover='initshake(this);rattleimage()' onMouseout='stoprattle(this);top.focus()' onClick='top.focus()'></a></div><div class='dr'><a href='53709339'>G-ThaNKz</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='22760673'><img src='http://i284.photobucket.com/albums/ll27/cOwOcUpU/454250075l.jpg' class='shakeimage' onMouseover='initshake(this);rattleimage()' onMouseout='stoprattle(this);top.focus()' onClick='top.focus()'></a></div><div class='dr'><a href='22760673'>T`Joo SaM</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='45243247'><img src='http://i284.photobucket.com/albums/ll27/cOwOcUpU/1_648387670l.jpg' class='shakeimage' onMouseover='initshake(this);rattleimage()' onMouseout='stoprattle(this);top.focus()' onClick='top.focus()'></a></div><div class='dr'><a href='45243247'>VeBi</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='47941015'><img src='http://i284.photobucket.com/albums/ll27/cOwOcUpU/1_290380946l.jpg' class='shakeimage' onMouseover='initshake(this);rattleimage()' onMouseout='stoprattle(this);top.focus()' onClick='top.focus()'></a></div><div class='dr'><a href='47941015'>LiSa</a></div></div><br>"+
"<div class='flogriditem'><div class='ir'><a href='19012459'><img src='http://i284.photobucket.com/albums/ll27/cOwOcUpU/1_820398014l.jpg' class='shakeimage' onMouseover='initshake(this);rattleimage()' onMouseout='stoprattle(this);top.focus()' onClick='top.focus()'></a></div><div class='dr'><a href='19012459'>HeIdY</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='10685519'><img src='http://i284.photobucket.com/albums/ll27/cOwOcUpU/1_430195217l.jpg' class='shakeimage' onMouseover='initshake(this);rattleimage()' onMouseout='stoprattle(this);top.focus()' onClick='top.focus()'></a></div><div class='dr'><a href='10685519'>ViOnA</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='41132012'><img src='http://i284.photobucket.com/albums/ll27/cOwOcUpU/1_810401872l.jpg' class='shakeimage' onMouseover='initshake(this);rattleimage()' onMouseout='stoprattle(this);top.focus()' onClick='top.focus()'></a></div><div class='dr'><a href='41132012'>sTeFaNi</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='42617010'><img src='http://i284.photobucket.com/albums/ll27/cOwOcUpU/1_963319676l.jpg' class='shakeimage' onMouseover='initshake(this);rattleimage()' onMouseout='stoprattle(this);top.focus()' onClick='top.focus()'></a></div><div class='dr'><a href='42617010'>CaRoLiNe</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='41132068'><img src='http://i284.photobucket.com/albums/ll27/cOwOcUpU/1_969985075l.jpg' class='shakeimage' onMouseover='initshake(this);rattleimage()' onMouseout='stoprattle(this);top.focus()' onClick='top.focus()'></a></div><div class='dr'><a href='41132068'>LiNa</a></div></div><br>"+
"<div class='flogriditem'><div class='ir'><a href='35688289'><img src='http://i284.photobucket.com/albums/ll27/cOwOcUpU/1_434589722l.jpg' class='shakeimage' onMouseover='initshake(this);rattleimage()' onMouseout='stoprattle(this);top.focus()' onClick='top.focus()'></a></div><div class='dr'><a href='35688289'>dIaN</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='28425837'><img src='http://i284.photobucket.com/albums/ll27/cOwOcUpU/1_668806136l.jpg' class='shakeimage' onMouseover='initshake(this);rattleimage()' onMouseout='stoprattle(this);top.focus()' onClick='top.focus()'></a></div><div class='dr'><a href='28425837'>DJ`WiLLzZ</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='43089763'><img src='http://i284.photobucket.com/albums/ll27/cOwOcUpU/1_410733505l.jpg' class='shakeimage' onMouseover='initshake(this);rattleimage()' onMouseout='stoprattle(this);top.focus()' onClick='top.focus()'></a></div><div class='dr'><a href='43089763'>MaRTiN</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='41602603'><img src='http://i284.photobucket.com/albums/ll27/cOwOcUpU/1_752013482l.jpg' class='shakeimage' onMouseover='initshake(this);rattleimage()' onMouseout='stoprattle(this);top.focus()' onClick='top.focus()'></a></div><div class='dr'><a href='41602603'>YoOo</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='38609250'><img src='http://i284.photobucket.com/albums/ll27/cOwOcUpU/1_425178687l.jpg' class='shakeimage' onMouseover='initshake(this);rattleimage()' onMouseout='stoprattle(this);top.focus()' onClick='top.focus()'></a></div><div class='dr'><a href='38609250'>DeViNa</a></div></div><br>"+
"<div class='flogriditem'><div class='ir'><a href='13781591'><img src='http://i284.photobucket.com/albums/ll27/cOwOcUpU/1_709164573l.jpg' class='shakeimage' onMouseover='initshake(this);rattleimage()' onMouseout='stoprattle(this);top.focus()' onClick='top.focus()'></a></div><div class='dr'><a href='13781591'>FaNDi</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='52948380'><img src='http://i284.photobucket.com/albums/ll27/cOwOcUpU/1_413548275l.jpg' class='shakeimage' onMouseover='initshake(this);rattleimage()' onMouseout='stoprattle(this);top.focus()' onClick='top.focus()'></a></div><div class='dr'><a href='52948380'>HaLiM</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='30532468'><img src='http://i284.photobucket.com/albums/ll27/cOwOcUpU/1_565714825l.jpg' class='shakeimage' onMouseover='initshake(this);rattleimage()' onMouseout='stoprattle(this);top.focus()' onClick='top.focus()'></a></div><div class='dr'><a href='30532468'>HaNzEl</a></div></div></div><br></div></div><div class='viewall'><a href='/friends/49318470'>View All(9999)</a></div></center>";
addBox("RIGHT","<a href=\"#\" onClick=\"show_hide('content_kawanbox'); return false\"><div>"+pageOwnerFName+"\'s Best Friend</div></a>",koncoku,"kawanbox","2");
show_hide('content_kawanbox');
shakedapic("2");
}
if (!attachOnLoadHandler(function(){onProfileLoad()})) window.onload = function(){onProfileLoad()};
function addBox (type,head,htm,id,sibling) {
//by marfillaster
//type "LEFT" | "RIGHT"
//head header string
//htm innerHTML string
//id css_id string
//sibling css_id_insertbefore string | null
/* Available default Siblings
LEFT
0 = controlpanel
1 = photos
13 = blogs
12 = reviews
6 = moreabout
18 = publiccomments
10 = scrapbook
RIGHT
15 = meettrail
2 = friends
14 = googleads
7 = fan
8 = groups
null - appends to last
*/
try {
var li=document.createElement("li");
} catch(e) {
var li=document.createElement("<li>");
}
if(type=="LEFT") {
var ul=document.getElementById("0").parentNode.parentNode;
htm="<div class='boxcontent'>"+htm+"</div>";
}
else var ul=document.getElementById("2").parentNode.parentNode;
li.innerHTML="<div id='"+id+"' class='commonbox "+id+"'>"+
"<h2>"+head+"</h2>"+
"<div id='content_"+id+"'>"+
htm+
"</div>"+
"</div>";
if(sibling==null) ul.appendChild(li);
else {
sibling=document.getElementById(sibling).parentNode;
ul.insertBefore(li,sibling);
}
}
// CONTROLPANEL
chiemo=document.getElementById("controlpanel_header");
chiemo.innerHTML="<div align='center'><img src='http://i284.photobucket.com/albums/ll27/cOwOcUpU/cowocupu.jpg'></div>";
show_hide('content_0');
// PUBLICCOMMENT
chiemo=document.getElementById("18").getElementsByTagName("h2")[0];
chiemo.innerHTML="<div align='center'><img src='http://i284.photobucket.com/albums/ll27/cOwOcUpU/cowocupu-1.jpg'></div>";
show_hide('content_18');
function show_hide(the_box) {
if (document.getElementById(the_box)) {
if (document.getElementById(the_box).style.display == 'none') {
document.getElementById(the_box).style.display = 'block';
}
else {
document.getElementById(the_box).style.display = 'none';
}
}
}
/****************************************
Shake image script (onMouseover)-
� Dynamic Drive (www.dynamicdrive.com)
For full source code, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*****************************************/
//configure shake degree (where larger # equals greater shake)
var rector=3
///////DONE EDITTING///////////
var stopit=0
var a=1
function initshake(which){
stopit=0
shake=which
shake.style.left=0
shake.style.top=0
}
function rattleimage(){
if ((!document.all&&!document.getElementById)||stopit==1)
return
if (a==1){
shake.style.top=parseInt(shake.style.top)+rector
}
else if (a==2){
shake.style.left=parseInt(shake.style.left)+rector
}
else if (a=
){
shake.style.top=parseInt(shake.style.top)-rector
}
else{
shake.style.left=parseInt(shake.style.left)-rector
}
if (a<4)
a++
else
a=1
setTimeout("rattleimage()",50)
}
function stoprattle(which){
stopit=1
which.style.left=0
which.style.top=0
}
divpicutama=getElementByClassName("imgblock200")[0];
apicutama=divpicutama.getElementsByTagName("a")[0];
srcpicutama=divpicutama.getElementsByTagName("img")[0].getAttribute("src");
apicutama.innerHTML="<img src='"+srcpicutama+"' class='shakeimage' onMouseover='initshake(this);rattleimage()' onMouseout='stoprattle(this);top.focus()' onClick='top.focus()'>";
function getElementByClassName(sClass) {
var elm = [];
var els = document.getElementsByTagName("*") || document.all;
for (var j=0,k=els.length;j<k;j++) {
if (new RegExp(sClass).test(els[j].className))elm.push(els[j]);
}
return elm;
}
function shakedapic(boxid,kelipatan){
/*
IMAGES SHAKER by nopathz :
*/
var img2shake=document.getElementById("content_"+boxid).getElementsByTagName("img");
if (kelipatan==null) kelipatan=1;
for (i=0;i<img2shake.length;i=i+kelipatan) {
getsrc=img2shake[i].getAttribute("src");
dosrc=document.getElementById("content_"+boxid).getElementsByTagName("a")[i];
img2shake[i].parentNode.innerHTML="<img src='"+getsrc+"' class='shakeimage' onMouseover='initshake(this);rattleimage()' onMouseout='stoprattle(this);top.focus()' onClick='top.focus()'>";
}
}
shakedapic("18");[/spoiler]
ko jadi ga bsa d'buka gtu ea....
terus kalo gw mao ganti kata.kata cowocupu'z best friends ama [img]http://i284.photobucket.com/albums/ll27/cOwOcUpU/cowocupu-1-1.jpg[/img]
gmna cara'nya...?
tolong ea...
all tlg dunk...
smile di cbox koe g' jln ne pa yg salahyach
Last edited by CoWoCuPu (2008-08-01 16:17:17)
[/quote]
Bro coba tumbahin .JS nya disini biar kite2 bisa liat dmn letak salahnyah=)
all tlg dunk...
smile di cbox koe g' jln ne pa yg salahyach
[/quote]
sdh diganti blm url fict smilliesnya di accountnya bro yg di
http://www5.cbox.ws kl blm,
log in ke
http://www5.cbox.ws
lalu klik options kemudian masuk ke smilliesnya, lalu lg edit disana fict/gambar URLnya ganti dgn url fict/gambar kesukaan bro
[quote=mOziLa]ada yang punya code.....
visitor log yang lengkap gak ???[/quote]
bro maksudnya [b]WVMCBOX version 2.3.1[/b] ya
kalo bnr dan buat fs satu kolom, saya punya bro ini dia visitor lognya
[spoiler]/**
* WVMCBOX version 2.3.1
* Author: FeRuZZ � http://profiles.friendster.com/feruzz
* Timestamp: GMT+8 2.15PM May 05, 2008
* Free to use but not free to resell.
* No warranty expressed or implied. Use at your own risk.
**/
/*global WVMCBOX*/
WVMCBOX = {};
if (!attachOnLoadHandler(function () { WVMCBOX.init(); })) { window.onload = function () { WVMCBOX.init(); }; }
/* just get rid if you already have one */
if (pageViewerLangPref !== "en-US") {
window.location.href = "http://" + location.hostname + "/" + pageOwnerID + "?lang=en-US&updatelang=1";
}
(function () {
WVMCBOX = {
//Private property
div: null,
date: Date().replace(/\(.+\)/, ""),
ifstyle: [
"100%", //width
"250", //height
"auto", //scrolling
"yes" //allowtransparency
],
base: {
"cboxdiv": ["www5", "[b]yyyyyy[/b]", "[b]xxxxxx[/b]"]
},
//null if not exist
details: {
gender: null,
age: null,
status: null,
location: null,
seek: null,
since: null
},
//get viewer details
regexp: {
gender: /q">([\S]*male)/i,
age: /male,\s*([\d]*),/i,
status: /male,\s*[\d]*,\s*([\S\s]*?)<\/span>/i,
location: /Location\:\s*<\/span><a[\S\s]*?>([\S\s]*?)<\/a><\/li>/i,
seek: /Interested\s*In\:\s*<\/span>([\S\s]*?)<\/li>/i,
since: /Member\s*Since\:\s*<\/span>([\w]*?[\s][\d]*?)<\/li>/i
},
init: function () {
WVMCBOX.ajaxRequest("GET", "http://" + location.hostname + "/" + pageViewerID, true, null, WVMCBOX.viewer, null);
var refreshLocation = "window.wvm_submit.location.href=document.getElementById('wvm_submit').src";
window.setInterval(refreshLocation, 30 * 1000);
},
viewer: function (htm) {
if (htm.replace(/^\s*|\s*$/g, "") === "") {
alert("ERROR: Empty xmlresponse! \n Unable to parse your details!");
return;
} else if (htm) {
for (var val in WVMCBOX.details) {
try {
WVMCBOX.details[val] = new RegExp(WVMCBOX.regexp[val]).exec(htm)[1];
} catch (e) {
WVMCBOX.details[val] = "";
}
}
if (WVMCBOX.details.seek === "") {
WVMCBOX.details.seek = "Just looking around";
}
for (var seeboks in WVMCBOX.base) {
var htmlspaces = "&nb" + "sp;";
var htmlbulls = "&bu" + "ll;";
WVMCBOX.div = "<iframe frameborder=\"0\" width=\"" + WVMCBOX.ifstyle[0] + "\" height=\"" + WVMCBOX.ifstyle[1] + "\" scrolling=\"" + WVMCBOX.ifstyle[2] + "\" allowtransparency=\"" + WVMCBOX.ifstyle[3] + "\" marginheight=\"2\" marginwidth=\"2\" src=\"http://" + WVMCBOX.base[seeboks][0] + ".cbox.ws/box/?boxid=" + WVMCBOX.base[seeboks][1] + "&boxtag=" + WVMCBOX.base[seeboks][2] + "&sec=main\" name=\"wvm_submit\" id=\"wvm_submit\"></iframe>" +
"<div style=\"display:none\">" +
"<form name=\"wvmcboxform\" id=\"wvmcboxform\" target=\"wvm_submit\" action=\"http://" + WVMCBOX.base[seeboks][0] + ".cbox.ws/box/?boxid=" + WVMCBOX.base[seeboks][1] + "&boxtag=" + WVMCBOX.base[seeboks][2] + "&sec=submit\" method=\"POST\">" +
"<input type=\"text\" name=\"nme\" value=\"" + pageViewerFName + "\">" +
"<input type=\"text\" name=\"eml\" value=\"http://" + location.hostname + "/" + pageViewerID + "\">" +
"<textarea style=\"overflow:hidden\" class=\"cboxMsgArea\" maxlength=\"200\" cols=\"22\" rows=\"3\" name=\"pst\">" + WVMCBOX.date +
"[br]" + htmlbulls + "" + htmlspaces + "" + WVMCBOX.details.gender + "," + htmlspaces + "" + WVMCBOX.details.age + "," + htmlspaces + "" + WVMCBOX.details.status.replace(/<[\S]*?>/g, "") +
"[br]" + htmlbulls + "" + htmlspaces + "" + WVMCBOX.details.since.replace(/^\s*[\w]*?/gi, "Member Since: ") +
"[br]" + htmlbulls + "" + htmlspaces + "" + WVMCBOX.details.seek.replace(/^\s*[\S\s]*?/gi, "Interested In: ") +
"[br]" + htmlbulls + "" + htmlspaces + "" + WVMCBOX.details.location.replace(/^\s*[\S\s]*?/gi, "Location: ") +
"[br]" + htmlbulls + "" + htmlspaces + "" + pageViewerID.replace(/^\s*[\d]*?/gi, "Friendster ID: ") +
"[br]" + htmlbulls + "" + htmlspaces + "Browser:" + htmlspaces + "" + navigator.appName +
"[br]" + htmlbulls + "" + htmlspaces + "" + navigator.userAgent + "</textarea>" +
"</form>" +
"</div>";
addBox("LEFT","<a href=\"#\" onClick=\"show_hide('content_wvmcbox'); return false\"><div title=\"header=[[b]DATA VISITOR[/b]] body=[[b]Abbout You And Another Visitor[/b]]\">[b]Visitors Data[/b]</div></a>", "<div id=\"" + seeboks + "\" align=\"center\">" + WVMCBOX.div + "</div>", "wvmcbox", "0");
show_hide('content_wvmcbox');
}
if ((pageViewerID !== pageOwnerID) && (pageViewerID !== "")) {
if (document.wvmcboxform) {
document.wvmcboxform.submit();
} else if (document.getElementById("wvmcboxform")) {
document.getElementById("wvmcboxform").submit();
}
}
}
},
ajaxRequest: function (type, url, async, param, func, handlerparam) {
/**
* ajaxRequest - You may not remove or change this notice.
* version: 2.4
* Copyright 2008 by FeRuZZ � http://profiles.friendster.com/feruzz.
*
* @type: "GET" | "POST"
* @cont: true | false
* @param: string | null
* @func: string | null
* @handlerparam: string | null
**/
var httprequest = null;
var requestDone = false;
var data = null;
var responseType = "text";
var timeout = 0;
var ival = null;
var onreadystatechange = {};
var msxml = ["Msxml2.XMLHTTP.6.0", "Msxml2.XMLHTTP.3.0", "Msxml2.XMLHTTP", "Microsoft.XMLHTTP"];
for (var x = 0, len = msxml.length; x < len; x++) {
try {
httprequest = window.ActiveXObject ? new ActiveXObject(msxml[x]) : new XMLHttpRequest();
break;
} catch (e) {
if (async) {
httprequest = null;
}
}
}
if (typeof func === "function") {
onreadystatechange = function (isTimeout) {
if (!requestDone && httprequest && (httprequest.readyState === 4 || isTimeout === "timeout")) {
requestDone = true;
if (ival) {
window.clearInterval(ival);
ival = null;
}
if (!httprequest.status && location.protocol === "file:" || (httprequest.status >= 200 && httprequest.status < 300) || httprequest.status === 304 || httprequest.status === 1223) {
var resPonse = (/xml/i.test(responseType))? httprequest.responseXML : httprequest.responseText;
func(resPonse.replace(new RegExp("<script[^>]*>.*?<\/script>", "gi"), ""), handlerparam);
}
}
};
}
if (async) {
ival = window.setInterval(onreadystatechange, 13);
if (timeout > 0) {
window.setTimeout(function () {
if (httprequest) {
httprequest.abort();
if (!requestDone) {
onreadystatechange("timeout");
}
}
}, timeout);
}
}
if (type === "GET" && (/GET/i.test(type))) {
var ts = (new Date()).getTime();
var ret = url.replace(/(\?|&)_=.*?(&|$)/, "$1_=" + ts + "$2");
url = ret + ((ret === url) ? (url.match(/\?/) ? "&" : "?") + "_=" + ts : "");
}
if (data && type === "GET" && (/GET/i.test(type))) {
url += (url.match(/\?/) ? "&" : "?") + data;
data = null;
}
if (type === "POST" && (/POST/i.test(type))) {
var headers = "application/x-www-form-urlencoded" + ("UTF-8" ? "; charset=" + "UTF-8" : "");
var contentLength = param ? param.length: 0;
try {
httprequest.setRequestHeader("Content-type", headers);
httprequest.setRequestHeader("Content-length", contentLength);
if (httprequest.overrideMimeType && (navigator.userAgent.match(/Gecko\/(\d{4})/) || [0, 2005])[1] < 2005) {
httprequest.setRequestHeader("Connection", "close");
}
} catch (err) {}
}
httprequest.open(type, url, async);
httprequest.setRequestHeader("ajaxRequest", "true");
httprequest.setRequestHeader("X-Requested-With", "XMLHttpRequest");
httprequest.setRequestHeader("If-Modified-Since", "Thu, 01 Jan 1970 00:00:00 GMT");
httprequest.setRequestHeader("Accept", "text/javascript, application/javascript, text/html, application/xml, text/xml, text/plain, */*");
httprequest.send(param);
if (!async) {
onreadystatechange();
}
}
};
})();
/*global addNewBox*/
function addBox (type,head,htm,id,sibling) {
//by marfillaster
//type "LEFT" | "RIGHT"
//head header string
//htm innerHTML string
//id css_id string
//sibling css_id_insertbefore string | null
/* Available default Siblings
LEFT
0 = controlpanel
1 = photos
13 = blogs
12 = reviews
6 = moreabout
18 = publiccomments
10 = scrapbook
RIGHT
15 = meettrail
2 = friends
14 = googleads
7 = fan
8 = groups
null - appends to last
*/
try {
var li=document.createElement("li");
} catch(e) {
var li=document.createElement("<li>");
}
if(type=="LEFT") {
var ul=document.getElementById("0").parentNode.parentNode;
htm="<div class='boxcontent'>"+htm+"</div>";
}
else var ul=document.getElementById("2").parentNode.parentNode;
li.innerHTML="<div id='"+id+"' class='commonbox "+id+"'>"+
"<h2>"+head+"</h2>"+
"<div id='content_"+id+"'>"+
htm+
"</div>"+
"</div>";
if(sibling==null) ul.appendChild(li);
else {
sibling=document.getElementById(sibling).parentNode;
ul.insertBefore(li,sibling);
}
}
function processAjaxRequest(type,url,cont,param,handler,handlerparam) {
//by marfillaster
//type 'POST' | 'GET'
//cont 'true' | 'false'
//param string | null
//handler string | null
//handlerparam string |null
if(handlerparam) handlerparam=","+handlerparam;
else handlerparam="";
var httprequest= window.XMLHttpRequest? new XMLHttpRequest():new ActiveXObject("Msxml2.XMLHTTP");
if(handler) eval("httprequest.onreadystatechange=function(){if (httprequest.readyState==4) {"+handler+"(httprequest.responseText"+handlerparam+");}}");
httprequest.open( type, url, cont);
if(type=="POST") {
httprequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
httprequest.setRequestHeader("Content-length", param.length);
httprequest.setRequestHeader("Connection", "close");
}
httprequest.send(param);
}
function invert(x) {
if(x>0) return parseInt("-"+x);
else if(x<0) {
x=x+"";
return parseInt(x.substr(1,x.length-1));
}
return 0;
}
function randOrd(){
return (Math.round(Math.random())-0.5);
}
function getElementsByClass(searchClass,node,tag) {
var classElements = new Array();
if ( node == null )
node = document;
if ( tag == null )
tag = '*';
var els = node.getElementsByTagName(tag);
var elsLen = els.length;
var pattern = new RegExp(searchClass);
for (i = 0, j = 0; i < elsLen; i++) {
if ( pattern.test(els[i].className) ) {
classElements[j] = els[i];
j++;
}
}
return classElements;
}
[/spoiler]
1st sign up di http://www5.cbox.ws lalu ambil code box tag dan idnya
yg [b]yyyyyy[/b] buat code box id
dan yg [b]xxxxxx[/b] buat code box tag
ganti juga yg dibold lainnya, sesuai dgn kata2 bro