[b]^^[/b]
kalo mao comment iang langsung muncul,. coba Lu pake ini man..
pertama,. lu harus ada kode buad di .css Lu..
ni dia kode'nya
[spoiler]#quickpost {display:none;}
#draggable_quickcomment {display:none;}
#bbmovies {text-align: center; display: none; margin-top: 4px; padding: 5px 6px; width: auto; height: auto; overflow: hidden; border: solid 1px #ccc}
#bbtoolbar {text-align: center; margin-top: 5px; padding: 3px 6px; position: relative; width: auto; height: 20px; border: solid 1px #ccc}
#bbtoolbar2 {text-align: center; margin-top: 1px; padding: 3px 6px; position: relative; width: auto; height: 20px; border: solid 1px #ccc}
#bbmovies_divider {color: #ccc; background-color: #ccc; margin-top: 5px; margin-bottom: 5px; width: 100%; height: 1px; border: 0}
#bbsmiley {text-align: center; display: none; margin-top: 4px; padding: 10px 30px; width: auto; height: auto; max-height: 100px; overflow: auto; border: solid 1px #ccc}
#bbsmiley IMG {margin: 1px }
div.bbcode {text-align: center; margin-top: 5px; padding: 3px 3px 5px; width: auto; height: auto; border: solid 1px #ccc}
img.bbcode {cursor: pointer; margin-right: 2px; padding: 2px 3px}
img.bbcode:hover {background-color: #e4e4e4; cursor: pointer; margin-right: 2px; padding: 2px 3px}
img.spacer {margin-bottom: 1px; margin-left: -2px}
img.vid_spacer {margin-bottom: 2px; margin-left: -2px}
.bbtitel {color: #666; font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; border-bottom: 1px solid #ccc}
div.postmsg span.bbu {text-decoration: underline}
div.postmsg span.bbs {text-decoration: line-through}
div.postmsg .bbcenter {text-align: center}
div.postmsg .bbleft {text-align: left}
div.postmsg .bbright {text-align: right}
div.postmsg .bbjustify {text-align: justify}
div.postmsg .bbindent {line-height: 1em; margin-left: 40px}
div.postmsg span.bbhighlight { background-color: #ff6; padding-right: 4px; padding-bottom: 3px; padding-left: 4px}
div.postmsg HR {color: #cccccc; background-color: #cccccc; text-align: center; height: 1px; border: none; align=center: 80% }
div.postmsg PRE {color: #660; font-size: 1.2em; font-family: monaco, "Bitstream Vera Sans Mono", "Courier New", courier, monospace}
div.postmsg ol, div.postmsg ul {margin-left: 40px}
div.postmsg li {margin-left: 40px; padding: 0}
div.postmsg ol li {list-style-type: decimal; margin: 0}
div.postmsg ul li {list-style-type: disc; margin: 0}
div.postmsg .bbvideo {text-align: center; margin-top: 10px; margin-bottom: 10px; padding: 0; width: auto; height: auto; clear: both}[/spoiler]
and kalo tu uda..
baru Lu kasi satu kode lagi buad di .js ato .txt Lu.. (taro di [b]C[/b])
[spoiler]if (typeof COMMENTOR == "undefined") { COMMENTOR = {}; }
COMMENTOR = {
comment: [],
init: function() {
this.comment = document.getElementById("content_18").getElementsByTagName("div")[0];
this.comment.innerHTML = "<div align='center' id=\"quickpost\">"+
"<form name=\"testimonial_form\" method=\"post\">"+
"<div id=\"bbtoolbar\">"+
"<img class=\"bbcode\" src=\"http://forum.smarterdos.co.cc/img/easyVisualBBCode/text_bold.png\" alt=\"Bold\" title=\"Bold\" onclick=\"DoSmilie('<span style=font-weight:bold></span>')\" />"+
"<img class=\"bbcode\" src=\"http://forum.smarterdos.co.cc/img/easyVisualBBCode/text_italic.png\" alt=\"Italic\" title=\"Italic\" onclick=\"DoSmilie('<span style=font-style:italic></span>')\" />"+
"<img class=\"bbcode\" src=\"http://forum.smarterdos.co.cc/img/easyVisualBBCode/text_underline.png\" alt=\"Underline\" title=\"Underline\" onclick=\"DoSmilie('<span style=text-decoration:underline></span>')\" />"+
"<img class=\"bbcode\" src=\"http://forum.smarterdos.co.cc/img/easyVisualBBCode/text_strikethrough.png\" alt=\"Strikethrough\" title=\"Strikethrough\" onclick=\"DoSmilie('<span style=text-decoration:strikethrough></span>')\" />"+
"<img class=\"spacer\" src=\"http://forum.smarterdos.co.cc/img/easyVisualBBCode/spacer.png\" alt=\"\" border=\"0\" />"+
"<img class=\"bbcode\" src=\"http://forum.smarterdos.co.cc/img/easyVisualBBCode/color_swatch.png\" alt=\"Font Color\" title=\"Fontcolor\" onclick=\"DoSmilie('<span style=font-color:black></span>')\" />"+
"<img class=\"spacer\" src=\"http://forum.smarterdos.co.cc/img/easyVisualBBCode/spacer.png\" alt=\"\" border=\"0\" />"+
"<img class=\"bbcode\" src=\"http://forum.smarterdos.co.cc/img/easyVisualBBCode/style.png\" alt=\"Font Size\" title=\"Fontsize\" onclick=\"DoSmilie('<span style=font-size:12px></span>')\" />"+
"<img class=\"spacer\" src=\"http://forum.smarterdos.co.cc/img/easyVisualBBCode/spacer.png\" alt=\"\" border=\"0\" />"+
"<a href=\"#\" onclick=\"toggleDisplay('bbsmiley');return false;\"><img class=\"bbcode\" src=\"http://forum.smarterdos.co.cc/img/easyVisualBBCode/emoticon_smile.png\" alt=\"\" title=\"Smilies\" border=\"0\"/></a>"+
"<img class=\"spacer\" src=\"http://forum.smarterdos.co.cc/img/easyVisualBBCode/spacer.png\" alt=\"\" border=\"0\" />"+
"<img class=\"bbcode\" src=\"http://forum.smarterdos.co.cc/img/easyVisualBBCode/text_align_left.png\" alt=\"Left\" title=\"Left\" onclick=\"DoSmilie('<span style=text-align:left></span>')\" />"+
"<img class=\"bbcode\" src=\"http://forum.smarterdos.co.cc/img/easyVisualBBCode/text_align_center.png\" alt=\"Center\" title=\"Center\" onclick=\"DoSmilie('<center></center>')\" />"+
"<img class=\"bbcode\" src=\"http://forum.smarterdos.co.cc/img/easyVisualBBCode/text_align_right.png\" alt=\"Right\" title=\"Right\" onclick=\"DoSmilie('<span style=text-align:right></span>')\" />"+
"</div>"+
"<div id=\"bbsmiley\">"+
"<a href=\"javascript:DoSmilie('<img src=http://forum.smarterdos.co.cc/img/smilies/smile.gif>')\">"+
"<img src='http://forum.smarterdos.co.cc/img/smilies/smile.gif'>"+
"</a>"+
"<a href=\"javascript:DoSmilie('<img src=http://forum.smarterdos.co.cc/img/smilies/nod.gif>')\">"+
"<img src='http://forum.smarterdos.co.cc/img/smilies/nod.gif'>"+
"</a>"+
"<a href=\"javascript:DoSmilie('<img src=http://forum.smarterdos.co.cc/img/smilies/neutral.gif>')\">"+
"<img src='http://forum.smarterdos.co.cc/img/smilies/neutral.gif'>"+
"</a>"+
"<a href=\"javascript:DoSmilie('<img src=http://forum.smarterdos.co.cc/img/smilies/smirk.gif>')\">"+
"<img src='http://forum.smarterdos.co.cc/img/smilies/smirk.gif'>"+
"</a>"+
"<a href=\"javascript:DoSmilie('<img src=http://forum.smarterdos.co.cc/img/smilies/frown.gif>')\">"+
"<img src='http://forum.smarterdos.co.cc/img/smilies/frown.gif'>"+
"</a>"+
"<a href=\"javascript:DoSmilie('<img src=http://forum.smarterdos.co.cc/img/smilies/cry.gif>')\">"+
"<img src='http://forum.smarterdos.co.cc/img/smilies/cry.gif'>"+
"</a>"+
"<a href=\"javascript:DoSmilie('<img src=http://forum.smarterdos.co.cc/img/smilies/tear.gif>')\">"+
"<img src='http://forum.smarterdos.co.cc/img/smilies/tear.gif'>"+
"</a>"+
"<a href=\"javascript:DoSmilie('<img src=http://forum.smarterdos.co.cc/img/smilies/biggrin.gif>')\">"+
"<img src='http://forum.smarterdos.co.cc/img/smilies/biggrin.gif'>"+
"</a>"+
"<a href=\"javascript:DoSmilie('<img src=http://forum.smarterdos.co.cc/img/smilies/badgrin.gif>')\">"+
"<img src='http://forum.smarterdos.co.cc/img/smilies/badgrin.gif'>"+
"</a>"+
"<a href=\"javascript:DoSmilie('<img src=http://forum.smarterdos.co.cc/img/smilies/lol.gif>')\">"+
"<img src='http://forum.smarterdos.co.cc/img/smilies/lol.gif'>"+
"</a>"+
"<a href=\"javascript:DoSmilie('<img src=http://forum.smarterdos.co.cc/img/smilies/eek.gif>')\">"+
"<img src='http://forum.smarterdos.co.cc/img/smilies/eek.gif'>"+
"</a>"+
"<a href=\"javascript:DoSmilie('<img src=http://forum.smarterdos.co.cc/img/smilies/shock.gif>')\">"+
"<img src='http://forum.smarterdos.co.cc/img/smilies/shock.gif'>"+
"</a>"+
"<a href=\"javascript:DoSmilie('<img src=http://forum.smarterdos.co.cc/img/smilies/wink.gif>')\">"+
"<img src='http://forum.smarterdos.co.cc/img/smilies/wink.gif'>"+
"</a>"+
"<a href=\"javascript:DoSmilie('<img src=http://forum.smarterdos.co.cc/img/smilies/slywink.gif>')\">"+
"<img src='http://forum.smarterdos.co.cc/img/smilies/slywink.gif'>"+
"</a>"+
"<a href=\"javascript:DoSmilie('<img src=http://forum.smarterdos.co.cc/img/smilies/confused.gif>')\">"+
"<img src='http://forum.smarterdos.co.cc/img/smilies/confused.gif'>"+
"</a>"+
"<a href=\"javascript:DoSmilie('<img src=http://forum.smarterdos.co.cc/img/smilies/paranoid.gif>')\">"+
"<img src='http://forum.smarterdos.co.cc/img/smilies/paranoid.gif'>"+
"</a>"+
"<a href=\"javascript:DoSmilie('<img src=http://forum.smarterdos.co.cc/img/smilies/roll.gif>')\">"+
"<img src='http://forum.smarterdos.co.cc/img/smilies/roll.gif'>"+
"</a>"+
"<a href=\"javascript:DoSmilie('<img src=http://forum.smarterdos.co.cc/img/smilies/cool.gif>')\">"+
"<img src='http://forum.smarterdos.co.cc/img/smilies/cool.gif'>"+
"</a>"+
"<a href=\"javascript:DoSmilie('<img src=http://forum.smarterdos.co.cc/img/smilies/tongue.gif>')\">"+
"<img src='http://forum.smarterdos.co.cc/img/smilies/tongue.gif'>"+
"</a>"+
"<a href=\"javascript:DoSmilie('<img src=http://forum.smarterdos.co.cc/img/smilies/mad.gif>')\">"+
"<img src='http://forum.smarterdos.co.cc/img/smilies/mad.gif'>"+
"</a>"+
"<a href=\"javascript:DoSmilie('<img src=http://forum.smarterdos.co.cc/img/smilies/angry.gif>')\">"+
"<img src='http://forum.smarterdos.co.cc/img/smilies/angry.gif'>"+
"</a>"+
"<a href=\"javascript:DoSmilie('<img src=http://forum.smarterdos.co.cc/img/smilies/disgust.gif>')\">"+
"<img src='http://forum.smarterdos.co.cc/img/smilies/disgust.gif'>"+
"</a>"+
"<a href=\"javascript:DoSmilie('<img src=http://forum.smarterdos.co.cc/img/smilies/doubt.gif>')\">"+
"<img src='http://forum.smarterdos.co.cc/img/smilies/doubt.gif'>"+
"</a>"+
"<a href=\"javascript:DoSmilie('<img src=http://forum.smarterdos.co.cc/img/smilies/evil.gif>')\">"+
"<img src='http://forum.smarterdos.co.cc/img/smilies/evil.gif'>"+
"</a>"+
"<a href=\"javascript:DoSmilie('<img src=http://forum.smarterdos.co.cc/img/smilies/redface.gif>')\">"+
"<img src='http://forum.smarterdos.co.cc/img/smilies/redface.gif'>"+
"</a>"+
"<a href=\"javascript:DoSmilie('<img src=http://forum.smarterdos.co.cc/img/smilies/unibrow.gif>')\">"+
"<img src='http://forum.smarterdos.co.cc/img/smilies/unibrow.gif'>"+
"</a>"+
"<a href=\"javascript:DoSmilie('<img src=http://forum.smarterdos.co.cc/img/smilies/retard.gif>')\">"+
"<img src='http://forum.smarterdos.co.cc/img/smilies/retard.gif'>"+
"</a>"+
"<a href=\"javascript:DoSmilie('<img src=http://forum.smarterdos.co.cc/img/smilies/wasted.gif>')\">"+
"<img src='http://forum.smarterdos.co.cc/img/smilies/wasted.gif'>"+
"</a>"+
"<a href=\"javascript:DoSmilie('<img src=http://forum.smarterdos.co.cc/img/smilies/smoke.gif>')\">"+
"<img src='http://forum.smarterdos.co.cc/img/smilies/smoke.gif'>"+
"</a>"+
"<a href=\"javascript:DoSmilie('<img src=http://forum.smarterdos.co.cc/img/smilies/ninja.gif>')\">"+
"<img src='http://forum.smarterdos.co.cc/img/smilies/ninja.gif'>"+
"</a>"+
"<a href=\"javascript:DoSmilie('<img src=http://forum.smarterdos.co.cc/img/smilies/drool.gif>')\">"+
"<img src='http://forum.smarterdos.co.cc/img/smilies/drool.gif'>"+
"</a>"+
"<a href=\"javascript:DoSmilie('<img src=http://forum.smarterdos.co.cc/img/smilies/crybaby.gif>')\">"+
"<img src='http://forum.smarterdos.co.cc/img/smilies/crybaby.gif'>"+
"</a>"+
"<a href=\"javascript:DoSmilie('<img src=http://forum.smarterdos.co.cc/img/smilies/puke.gif>')\">"+
"<img src='http://forum.smarterdos.co.cc/img/smilies/puke.gif'>"+
"</a>"+
"<a href=\"javascript:DoSmilie('<img src=http://forum.smarterdos.co.cc/img/smilies/shit.gif>')\">"+
"<img src='http://forum.smarterdos.co.cc/img/smilies/shit.gif'>"+
"</a>"+
"<a href=\"javascript:DoSmilie('<img src=http://forum.smarterdos.co.cc/img/smilies/thumbsup.gif>')\">"+
"<img src='http://forum.smarterdos.co.cc/img/smilies/thumbsup.gif'>"+
"</a>"+
"<a href=\"javascript:DoSmilie('<img src=http://forum.smarterdos.co.cc/img/smilies/thumbsdown.gif>')\">"+
"<img src='http://forum.smarterdos.co.cc/img/smilies/thumbsdown.gif'>"+
"</a>"+
"<a href=\"javascript:DoSmilie('<img src=http://forum.smarterdos.co.cc/img/smilies/arrow.gif>')\">"+
"<img src='http://forum.smarterdos.co.cc/img/smilies/arrow.gif'>"+
"</a>"+
"<a href=\"javascript:DoSmilie('<img src=http://forum.smarterdos.co.cc/img/smilies/idea.gif>')\">"+
"<img src='http://forum.smarterdos.co.cc/img/smilies/idea.gif'>"+
"</a>"+
"<a href=\"javascript:DoSmilie('<img src=http://forum.smarterdos.co.cc/img/smilies/exclaim.gif>')\">"+
"<img src='http://forum.smarterdos.co.cc/img/smilies/exclaim.gif'>"+
"</a>"+
"<a href=\"javascript:DoSmilie('<img src=http://forum.smarterdos.co.cc/img/smilies/question.gif>')\">"+
"<img src='http://forum.smarterdos.co.cc/img/smilies/question.gif'>"+
"</a>"+
"<a href=\"javascript:DoSmilie('<img src=http://forum.smarterdos.co.cc/img/smilies/rose.gif>')\">"+
"<img src='http://forum.smarterdos.co.cc/img/smilies/rose.gif'>"+
"</a>"+
"<a href=\"javascript:DoSmilie('<img src=http://forum.smarterdos.co.cc/img/smilies/norose.gif>')\">"+
"<img src='http://forum.smarterdos.co.cc/img/smilies/norose.gif'>"+
"</a>"+
"<a href=\"javascript:DoSmilie('<img src=http://forum.smarterdos.co.cc/img/smilies/kiss.gif>')\">"+
"<img src='http://forum.smarterdos.co.cc/img/smilies/kiss.gif'>"+
"</a>"+
"<a href=\"javascript:DoSmilie('<img src=http://forum.smarterdos.co.cc/img/smilies/clock.gif>')\">"+
"<img src='http://forum.smarterdos.co.cc/img/smilies/clock.gif'>"+
"</a>"+
"<a href=\"javascript:DoSmilie('<img src=http://forum.smarterdos.co.cc/img/smilies/globe.gif>')\">"+
"<img src='http://forum.smarterdos.co.cc/img/smilies/globe.gif'>"+
"</a>"+
"<a href=\"javascript:DoSmilie('<img src=http://forum.smarterdos.co.cc/img/smilies/cake.gif>')\">"+
"<img src='http://forum.smarterdos.co.cc/img/smilies/cake.gif'>"+
"</a>"+
"<a href=\"javascript:DoSmilie('<img src=http://forum.smarterdos.co.cc/img/smilies/gift.gif>')\">"+
"<img src='http://forum.smarterdos.co.cc/img/smilies/gift.gif'>"+
"</a>"+
"<a href=\"javascript:DoSmilie('<img src=http://forum.smarterdos.co.cc/img/smilies/cloud.gif>')\">"+
"<img src='http://forum.smarterdos.co.cc/img/smilies/cloud.gif'>"+
"</a>"+
"<a href=\"javascript:DoSmilie('<img src=http://forum.smarterdos.co.cc/img/smilies/thunder.gif>')\">"+
"<img src='http://forum.smarterdos.co.cc/img/smilies/thunder.gif'>"+
"</a>"+
"<a href=\"javascript:DoSmilie('<img src=http://forum.smarterdos.co.cc/img/smilies/wow.gif>')\">"+
"<img src='http://forum.smarterdos.co.cc/img/smilies/wow.gif'>"+
"</a>"+
"<a href=\"javascript:DoSmilie('<img src=http://forum.smarterdos.co.cc/img/smilies/wallbash.gif>')\">"+
"<img src='http://forum.smarterdos.co.cc/img/smilies/wallbash.gif'>"+
"</a>"+
"<a href=\"javascript:DoSmilie('<img src=http://forum.smarterdos.co.cc/img/smilies/penguin.gif>')\">"+
"<img src='http://forum.smarterdos.co.cc/img/smilies/penguin.gif'>"+
"</a></div>"+
"<div class=\"viewall\" id=\"quickreply\"><center>"+
"<input type=\"hidden\" name=\"testimonial_firstname\" value=\""+pageOwnerFName+"\">"+
"<input type=\"hidden\" name=\"testimonial_uid\" value=\""+pageViewerID+"\">"+
"<input type=\"hidden\" name=\"_submitted\" value=\"1\">"+
"<table class=\"formtable\"><tr><td class=\"value\">"+
"<textarea id=\"thingy\" rows=\"7\" cols=\"100\" name=\"body\"></textarea>"+
"</td></tr><tr><td class=\"value\">"+
"<input readonly type=\"hidden\" name=\"inputcount\" size=\"4\" maxlength=\"4\" value=\"1000\">"+
"<input style='padding: 4px 0; margin: 10px 0 6px 0;font-family:Arial;font-weight:bold;color:#17728f;border:1px solid #196B91;background-color:#ffffff' type=\"button\" name=\"Submit\" onMouseOver=\"window.status='Post';return true;\" onClick=\"document.testimonial_form.action='http://www.friendster.com/testimonials.php?uid="+pageOwnerID+"&action=add';document.testimonial_form.submit();\" value=\"Submit\"> "+
"<input style='padding: 4px 0; margin: 10px 0 6px 0;font-family:Arial;font-weight:bold;color:#17728f;border:1px solid #196B91;background-color:#ffffff' class=\"cancelButtons\" type=\"reset\" name=\"cancel\" value=\"Clear\" maxlength=\"25\"><br>"+
"</td></tr></table></form></center>"+
"<br><hr><br></div></div>"+
"<a href='javascript:loadComment()' \><span>Post a Comment </a>|</span><a href=http://www.friendster.com/comments.php?uid="+pageOwnerID+" \><span>View all (1001)</span></a>";
}
};
window.addEvent('domready', function(){COMMENTOR.init();});
function x(){
return;
}
function DoSmilie(addSmilie, messageDef){
var addSmilie, messageDef, revisedMessage;
var currentMessage = document.testimonial_form.body.value;
if(currentMessage==messageDef){currentMessage='';}
revisedMessage = currentMessage+addSmilie;
document.testimonial_form.body.value=revisedMessage;
document.testimonial_form.body.focus();
return;
}
function toggleDisplay(divId) {
var div = document.getElementById(divId);
div.style.display = (div.style.display=="block" ? "none" : "block");
}
function loadComment(){
document.getElementById("quickpost").style.display="block"
document.location.href="#quickpost"
quickpostLink.innerHTML="<a href='javascript:unloadComment()'>Hide Quick Comment</a>"
}
function unloadComment(){
document.getElementById("quickpost").style.display="none"
quickpostLink.innerHTML="<a href='javascript:loadComment()'>Add Comment</a>"
}
function loadQuickComment() {
document.getElementById("controlPanelButtons").getElementsByTagName("li")[4].innerHTML = "<li id='quickpostLink'><a href='javascript:loadComment()'>Add Comment</a></li>";
document.getElementById("content_18").getElementsByTagName("div")[25].innerHTML = "<a href='javascript:loadComment()' \><span>Post a Comment </a>|</span><a href=http://www.friendster.com/comments.php?uid="+pageOwnerID+" \><span>View all (1001)</span></a>";
}
window.addEvent('domready', function(){loadQuickComment();});[/spoiler]
moga berhasil ia.
Last edited by CoWoCuPu (2008-10-11 20:54:04)