[b]all[/b]
neeh code cbox(draggable) aQ..
ko' smilies'a ga bisa dibuka ya...
[spoiler]
//c - box
if (!attachOnLoadHandler(function() { dragBox();})) window.onload = function() { dragBox();};
function dragBox() {
DRAGGABLE.init();
}
if (typeof DRAGGABLE == "undefined") { DRAGGABLE = {}; }
DRAGGABLE = {
init: function() {
var trgt;
try {
trgt = document.createElement("div");
}catch(e) {
trgt = document.createElement("<div>");
}
trgt.id = "tl";
trgt.style.position = "absolute";
trgt.style.top = "550px";
trgt.style.left = "350px";
trgt.style.zIndex = 30000;
document.getElementsByTagName("body")[0].appendChild(trgt);
var d = "<table border=\"0\" width=\"300px\" bgcolor=\"#000000\" cellspacing=\"0\" cellpadding=\"5\" div align=\"left\" div id=\"chatbox\"></div>"+
"<tr>"+
"<td width=\"100%\">"+
"<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" height=\"36\">"+
"<tr>"+
"<td id=\"tBar\" style=\"cursor:move\" width=\"100%\">"+
"<ilayer width=\"100%\" onSelectStart=\"return false\">"+
"<layer width=\"100%\" onMouseover=\"isHot=true;if (document.layers) DRAGGABLE.tetikusN4(tl)\" onMouseout=\"isHot=false\">"+
"<center><h2><font color='white'>Chat Box</font></h2></center>"+
"</layer>"+
"</ilayer>"+
"</td>"+
"<td style=\"cursor:hand\" valign=\"top\">"+
"<a href=\"#\" onClick=\"DRAGGABLE.hideMe();return false\"><img src=\"http://i247.photobucket.com/albums/gg125/dj_afran/buttons/button-close.gif\" title=\"close\"></a>"+
"</td>"+
"</tr>"+
"<tr>"+
"<td width=\"100%\" bgcolor=\"#000000\" style=\"padding:4px\" colspan=\"2\"><div id='cboxdiv' div align='center'><font size='1'>To Bring back this chat box just press The show the cbox button on the control panel</font><hr></div>"+
"<div align='center'><iframe frameborder='0' width='100%' height='400' src='http://www5.cbox.ws/box/?boxid=176090&boxtag=b45zgp&sec=main' marginheight='2' marginwidth='2' scrolling='auto' allowtransparency='yes' name='bryan' id='bryan'></iframe><br/><form name='chat' target='bryan' action='http://www5.cbox.ws/box/?boxid=176090&boxtag=b45zgp&sec=submit' method='post'><input type='hidden' name='nme' value='"+pageViewerFName+"'><input type='hidden' name='eml' value='http://www.friendster.com/"+pageViewerID+"'><font face='Trebuchet MS' SIZE='2' COLOR='white'><b>Your Name : <font color=cyan><blink>"+pageViewerFName+"</blink></b></font></font><textarea style='overflow:hidden' class='cboxMsgArea' cols='75' rows='5' name='pst'></textarea><br /><input type='submit' class='cboxButtons' value='Submit' name='asa'><input class='cboxButtons' type='reset' value='Clear' maxlength='23' onClick='reset()'><input type='button' class='cboxButtons' value='Refresh' name='bryan' onClick='window.bryan.location.href=document.getElementById(\"bryan\")id='show' style='display: inline'><br><div id='show' style='display: inline'><a href='javascript:showForm()' title='Open Smilies Menu'><font face='Trebuchet MS' SIZE='2' COLOR='white'><b>Open Smilies</b></font></a></div>"+
"<div id='close' style='display: none'><a href='javascript:showForm()' title='Close Smilies Menu'><font face='Trebuchet MS' SIZE='2' COLOR='white'><b>Close Smilies</b></font></a></div>"+
"<div id='hide' style='display: none'>"+"<div width='100%' style='border:0px solid #000000; background:transparent;padding:4px' align='center'>"+
"<a href=\"javascript:DoSmilie(' :1:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/1.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :2:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/2.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :3:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/3.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :4:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/4.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :5:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/5.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :6:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/6.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :7:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/7.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :8:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/8.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :9:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/9.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :10:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/10.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :11:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/11.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :12:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/12.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :13:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/13.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :14:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/14.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :15:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/15.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :16:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/16.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :17:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/17.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :18:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/18.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :19:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/19.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :20:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/20.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :21:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/21.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :22:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/22.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :23:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/23.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :24:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/24.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :25:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/25.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :26:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/26.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :27:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/27.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :28:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/28.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :29:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/29.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :30:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/30.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :31:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/31.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :32:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/32.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :33:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/33.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :34:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/34.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :35:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/35.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :36:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/36.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :37:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/37.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :38:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/38.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :39:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/39.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :40:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/40.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :41:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/41.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :42:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/42.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :43:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/43.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :44:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/44.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :45:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/45.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :46:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/46.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :47:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/47.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :48:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/48.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :49:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/49.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :50:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/50.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :51:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/51.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :52:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/52.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :53:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/53.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :54:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/54.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :55:')\"><img src='http://l.yimg.com/us.yimg.com/i/mesg/emoticons7/101.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :56:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/56.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :57:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/57.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :58:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/58.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :59:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/59.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :60:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/60.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :61:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/61.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :62:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/62.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :63:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/63.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :64:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/64.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :65:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/65.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :66:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/66.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :67:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/67.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :68:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/68.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :69:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/69.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :70:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/70.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :71:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/71.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :72:')\"><img src='http://l.yimg.com/us.yimg.com/i/mesg/emoticons7/100.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :73:')\"><img src='http://l.yimg.com/us.yimg.com/i/mesg/emoticons7/102.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :74:')\"><img src='http://l.yimg.com/us.yimg.com/i/mesg/emoticons7/103.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :75:')\"><img src='http://l.yimg.com/us.yimg.com/i/mesg/emoticons7/104.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :76:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/76.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :77:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/77.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :78:')\"><img src='http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/78.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :79:')\"><img src='http://l.yimg.com/us.yimg.com/i/mesg/emoticons7/105.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :80:')\"><img src='http://www.fileden.com/files/2008/6/22/1971034/Smile/asik.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :81:')\"><img src='http://l.yimg.com/us.yimg.com/i/mesg/emoticons7/113.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :82:')\"><img src='http://www.fileden.com/files/2008/6/22/1971034/Smile/hiya.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :83:')\"><img src='http://www.fileden.com/files/2008/6/22/1971034/Smile/jedut.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :84:')\"><img src='http://l.yimg.com/us.yimg.com/i/mesg/emoticons7/109.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :85:')\"><img src='http://www.fileden.com/files/2008/6/22/1971034/Smile/motor.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :86:')\"><img src='http://l.yimg.com/us.yimg.com/i/mesg/emoticons7/111.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :87:')\"><img src='http://l.yimg.com/us.yimg.com/i/mesg/emoticons7/110.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :88:')\"><img src='http://l.yimg.com/us.yimg.com/i/mesg/emoticons7/106.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :89:')\"><img src='http://l.yimg.com/us.yimg.com/i/mesg/emoticons7/112.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :90:')\"><img src='http://l.yimg.com/us.yimg.com/i/mesg/emoticons7/114.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :91:')\"><img src='http://l.yimg.com/us.yimg.com/i/mesg/emoticons7/107.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :92:')\"><img src='http://www.fileden.com/files/2008/6/22/1971034/Smile/joged.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :93:')\"><img src='http://www.fileden.com/files/2008/6/22/1971034/Smile/minum.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :94:')\"><img src='http://www.freesmileys.org/emoticons/emoticon-char-023.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :95:')\"><img src='http://www.freesmileys.org/emoticons/emoticon-cute-001.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :96:')\"><img src='http://www.fileden.com/files/2007/3/15/887906/anim_45.gif'></a>"+
"<a href=\"javascript:DoSmilie(' :97:')\"><img src='http://www.fileden.com/files/2007/3/15/887906/anim_55.gif'></a>"+
"</div></div></form></div>"+
"</tr>"+
"</table>"+
"</td>"+
"</tr>"+
"</table>";
tx = document.getElementById("tl");
tx.innerHTML = d;
var link = "";
try {
link = document.createElement("<a id=\"dl\" style=\"display: none\" href=\"#\" onclick=\"DRAGGABLE.showMe(this);return false\">");
}catch(e) {
link = document.createElement("a");
link.setAttribute("id","dl");
link.setAttribute("href","#");
link.setAttribute("style","display: none");
link.onclick = function() {
DRAGGABLE.showMe();
return false;
};
}
link.innerHTML = "Show Chat Box";
var q = document.getElementById("controlPanelButtons");
q.appendChild(link);
document.onmousedown = DRAGGABLE.tetikusInit;
document.onmouseup = Function("ddEnabled=false");
isHot = false;
},
hideMe: function() {
document.getElementById("dl").style.display = "";
if (document.all || !document.all && document.getElementById) kr.style.display = "none";
else if (document.layers) document.tl.visibility = "hide";
},
showMe: function() {
document.getElementById("dl").style.display = "none";
if (document.all || !document.all && document.getElementById) kr.style.display = "";
else if (document.layers) document.tl.visibility = "show";
},
tetikusInit: function(klik) {
dx = document.all ? "BODY" : "HTML";
kr = document.all ? document.all.tl : document.getElementById("tl");
dy = document.all ? event.srcElement : klik.target;
while (dy.id != "tBar" && dy.tagName != dx) {
dy = document.all ? dy.parentElement : dy.parentNode;
}
if (dy.id == "tBar") {
offsetx = document.all ? event.clientX : klik.clientX;
offsety = document.all ? event.clientY : klik.clientY;
nowX = parseInt(kr.style.left);
nowY = parseInt(kr.style.top);
ddEnabled = true;
document.onmousemove = DRAGGABLE.tetikus;
}
},
tetikus: function(klik) {
if (!ddEnabled) return;
kr.style.left = document.all ? nowX + event.clientX - offsetx : nowX + klik.clientX - offsetx;
kr.style.top = document.all ? nowY + event.clientY - offsety : nowY + klik.clientY - offsety;
return false;
},
tetikusN4: function(klik) {
if (!document.layers) return;
N4 = eval(klik);
N4.captureEvents(Event.MOUSEDOWN | Event.MOUSEUP);
N4.onmousedown = function(posisi) {
N4.captureEvents(Event.MOUSEMOVE);
N4x = posisi.x;
N4y = posisi.y;
};
N4.onmousemove = function(posisi) {
if (isHot) {
N4.moveBy(posisi.x - N4x, posisi.y - N4y);
return false;
}
};
N4.onmouseup = function() {
N4.releaseEvents(Event.MOUSEMOVE);
};
}
};
[/spoiler]
nee prepiu'a..
[url=http://profiles.friendster.com/63877549]FS Jelek[/url]...