Re: Bagi para member yang ingin bertanya seputar tweaking FS.
Silahkan bertanya dan posting disini.
Sebelum itu harap membaca dan mengikuti [url=http://theftalk.com/t23371-FORUM-RULES.html][b]FORUM
[quote=Co_don SanAdH]minta auf klarung bang[/quote]
itu baris pertama musti masuk ke dalam fungsi juga dong ...
atau coba ini :
[spoiler]function baleskomen (){
divnya=getElementsByClassName("viewall","div","content_18")[1];
divnya.innerHTML=
"<div class=\"viewall\"><a href=\"#lightbox1\" rel=\"lightbox1\" class=\"lbOn\">Post a Comment</a> | <a href=\"comments.php?uid="+pageOwnerID+"\">View all (99999)</a>"+
"<div id=\"lightbox1\" class=\"leightbox\">"+
"<div align=\"center\" class=\"data\">"+
"<div class=\"viewall\" id=\"quickreply\"><center>
"<span class=\"typehere\">Post you comments here <a href=\"http://profiles.friendster.com/"+pageViewerID+"\" target=\"_blank\">"+pageViewerFName+"</a></span><br>"+
"<form name=\"testimonial_form\" method=\"post\">"+
"<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=\"5\" cols=\"60\" name=\"body\"></textarea>"+
"</td></tr><tr><td class=\"value\">"+
"<input readonly type=\"hidden\" name=\"inputcount\" size=\"4\" maxlength=\"4\" value=\"1000\">"+
"<input class=\"tombol\" 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\" title=\"Send\">"+
"<input class=\"tombol\" type=\"reset\" name=\"cancel\" value=\"Clear\" maxlength=\"25\" title=\"Clear\"><br>"+
"</td></tr></table></form><br><a href="#" class="lbAction\" rel=\"deactivate\">Close</a></center></div><hr><br></div>";
}
if (!attachOnLoadHandler(function(){baleskomen()})) window.onload = function(){baleskomen()};
function getElementsByClassName(strClass, strTag, objContElm) {
strTag = strTag || "*";
objContElm = objContElm || document;
var objColl = objContElm.getElementsByTagName(strTag);
if (!objColl.length && strTag == "*" && objContElm.all) objColl = objContElm.all;
var arr = new Array();
var delim = strClass.indexOf('|') != -1 ? '|' : ' ';
var arrClass = strClass.split(delim);
for (var i = 0, j = objColl.length; i < j; i++) {
var arrObjClass = objColl[i].className.split(' ');
if (delim == ' ' && arrClass.length > arrObjClass.length) continue;
var c = 0;
comparisonLoop:
for (var k = 0, l = arrObjClass.length; k < l; k++) {
for (var m = 0, n = arrClass.length; m < n; m++) {
if (arrClass[m] == arrObjClass[k]) c++;
if (( delim == '|' && c == 1) || (delim == ' ' && c == arrClass.length)) {
arr.push(objColl[i]);
break comparisonLoop;
}
}
}
}
return arr;
}[/spoiler]