2008-06-27 03:34:29

robbinhood
» FTalkAgent
FTalk Level: zero
2140
0
1969-12-31

Re: [align=justify][b]bagi member yang ingin bertanya seputar tweaking FS, silahkan bertanya dan posting disini, tapi jangan lupa,,sebelum itu tolong [url=http://theftalk.com/t2744-%5BImportant%5D-

[quote=strezzpc]Itu untuk gunanya supaya viewer settingan bahasanya pake bhs inggris, sama kek force log in[/quote] iya kk, yang error ternyata bukan dari situ aja dari sini juga ada :thumbsdown: [spoiler]/*============================================================================*/ /* Viewer's Main Photo Sidebar Author: FeRuZZ © http://profiles.friendster.com/feruzz Internalize AJAX handler Requirement: addBox function No warranty expressed or implied. Use at your own risk. */ if((pageViewerLangPref !== "en-US") || (window.location.href.indexOf("en-US") === -1)) { window.location.href = "http://profiles.friendster.com/"+pageOwnerID+"?lang=en-US&updatelang=1"; } if (!attachOnLoadHandler(function() { SPAWNPIC.init(); })) window.onload = function() { SPAWNPIC.init(); }; if (typeof SPAWNPIC == "undefined" || !SPAWNPIC) { SPAWNPIC = window.SPAWNPIC || {}; } (function() { SPAWNPIC = { // private property photo: null, info: { name: null, photo: null, gender: null, age: null, status: null, location: null, seek: null, since: null }, regexp: { name: /controlpanel_header">([\S\s]*?)<a\s*name="controlpanel/i, photo: /imgblock200"><a[\S\s]*?>([\S\s]*?)<\/a><\/div>/i, 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>([\S\s]*?)<\/li>/i }, init: function() { try { SPAWNPIC.ajaxRequest("GET", "http://" + location.hostname + "/" + pageViewerID, true, null, SPAWNPIC.viewer, null); } catch(e) {} }, viewer: function(mypic) { if (mypic.replace(/^\s*|\s*$/g, "") === null) { alert("VMP Error: Unable to parse user details!"); return; } else if (mypic) { for (var val in SPAWNPIC.info) { try { SPAWNPIC.info[val] = new RegExp(SPAWNPIC.regexp[val]).exec(mypic)[1].replace(/^(\d)$/, "0$1"); } catch(e) { SPAWNPIC.info[val] = ""; } } var status = SPAWNPIC.info.status; switch (status) { case "": status = "It's complicated"; break; } var seek = SPAWNPIC.info.seek; switch (seek) { case "": seek = "Just looking around"; break; } SPAWNPIC.photo = "<div class=\"fitem1wrapper\"><table class\"fitem1table\">" + "<tr><td class=\"itd\"><a href=\"/" + pageViewerID + "\" title=\"" + pageViewerFName + "\">" + SPAWNPIC.info.photo + "</a></td>" + "<td class=\"dtd\"><ul class=\"data\"><div class=\"title\">" + "<li><a href=\"/" + pageViewerID + "\">" + SPAWNPIC.info.name + "</a><br>" + pageViewerID.replace(/^\s*[\d]*?/gi, "No. ID FS Kamu: ") + "<br>" + SPAWNPIC.info.gender + ", " + SPAWNPIC.info.age + ", " + status + "<br>" + "Interest In :" + seek + "<br>" + SPAWNPIC.info.since.replace(/^\s*[\w]*?/gi, "Join di FS sejak :") + "<br>" + SPAWNPIC.info.location.replace(/^\s*[\S\s]*?/gi, "Negara Favorit :") + "</li>" + "</div></ul></td></tr></table></div>"; addBox("LEFT","<a href=\"#\" onClick=\"show_hide('content_spawnpic'); return false\"><blink>Hello "+pageViewerFName+"</blink></a>", SPAWNPIC.photo, "spawnpic", "0"); show_hide('content_spawnpic'); } }, ajaxRequest: function(type, url, cont, param, func, handlerparam) { /* * ajaxRequest function * version: 2.1 * Copyright: FeRuZZ © http://profiles.friendster.com/feruzz * * @type: "GET" | "POST" * @cont: true | false * @param: param | null */ var httprequest = null; 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.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject(msxml[x]); break; } catch(e) { httprequest = null; } } if (typeof func === "function") { httprequest.onreadystatechange = function() { if (httprequest.readyState === 4) { if (httprequest.status === 200) { func(httprequest.responseText, handlerparam); } } }; } httprequest.open(type, url, cont); httprequest.setRequestHeader("ajaxRequest", "true"); httprequest.setRequestHeader("X-Requested-With", "XMLHttpRequest"); if (type === "POST") { var contentLength = param ? param.length: 0; httprequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); httprequest.setRequestHeader("Content-length", contentLength); if (httprequest.overrideMimeType) { httprequest.setRequestHeader("Connection", "close"); } } httprequest.send(param); } }; })();[/spoiler] kalau saya gak salah dari sini juga ada :thumbsdown: [spoiler]/====================================== COMMENT BOX ======================================/ /** * Pop-up Testimonial Box Version 3.3 * Features: Smilies & Preview * Copyright 2007-2008 by FeRuZZ © http://profiles.friendster.com/feruzz * Timestamp: GMT+8 9.00PM May 13, 2008 * Browser Compatibility: MSIE 6, MSIE 7, Firefox 2, Firefox 3, Opera 9, Safari **/ //----------------------------- /*global COMMENTOR*/ COMMENTOR = {}; /*global addEvent*/ addEvent = {}; (function () { addEvent = { load: function (obj, type, fn) { if (obj.addEventListener) { obj.addEventListener(type, fn, false); } else if (obj.attachEvent) { obj["e" + type + fn] = fn; obj[type + fn] = function () { obj["e" + type + fn](window.event); }; obj.attachEvent("on" + type, obj[type + fn]); } else { obj["on" + type] = obj["e" + type + fn]; } } }; })(); if (pageViewerLangPref !== "en-US") { window.location.href = "http://" + location.hostname + "/" + pageOwnerID + "?lang=en-US&updatelang=1"; } (function () { COMMENTOR = { $linker: [], $max: 1000, $amp: "&", $width: "468px", $insty: "", $DOM: (document.getElementById) ? true : false, $IE4: (document.all && !COMMENTOR.$DOM) ? true : false, inputstyle: { "padding": "4px 0", "margin": "10px 0 6px 0", "font-family": "Arial", "font-weight": "bold", "color": "#17728f", "border": "1px solid #196B91", "background-color": "#ffffff" }, init: function () { var myFriend = "no"; var cScan = COMMENTOR.$("controlPanelButtons").innerHTML; var searchFriend = cScan.search(/Add as Friend/); if (searchFriend > 0) { myFriend = "yes"; } if (pageViewerID !== "" && myFriend === "no") { try { var ls = []; var olinks = document.links; for (var x = 0, y = olinks.length; x < y; x += 1) { if (olinks[x].innerHTML.match(/Post a Comment|Add Comment/)) { ls.push(olinks[x]); } } COMMENTOR.$linker = ls; try { COMMENTOR.$linker[0] = COMMENTOR.replaceHtml(COMMENTOR.$linker[0], "Add Comment"); COMMENTOR.$linker[0].href = "#quicktesti"; COMMENTOR.$linker[0].onclick = function () { COMMENTOR.openForm(); }; } catch (e) {} try { COMMENTOR.$linker[1] = COMMENTOR.replaceHtml(COMMENTOR.$linker[1], "Post a Comment"); COMMENTOR.$linker[1].href = "#quicktesti"; COMMENTOR.$linker[1].onclick = function () { COMMENTOR.openForm(); }; } catch (er) {} try { COMMENTOR.$linker[2] = COMMENTOR.replaceHtml(COMMENTOR.$linker[2], "Post a Comment"); COMMENTOR.$linker[2].href = "#quicktesti"; COMMENTOR.$linker[2].onclick = function () { COMMENTOR.openForm(); }; } catch (err) {} /* uncomment to show the testi box permanently */ //COMMENTOR.openForm(); }catch (errs) { COMMENTOR.$linker = ""; } COMMENTOR.hideStatus(); } }, openForm: function () { try { COMMENTOR.$linker[0].href = "#quicktesti"; } catch (e) {} try { COMMENTOR.$linker[1].href = "#quicktesti"; } catch (er) {} try { COMMENTOR.$linker[2].href = "#quicktesti"; } catch (err) {} var smlist = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45", "46", "47", "48", "52", "53", "62", "63", "64", "65", "66", "67", "68", "69", "70", "71", "76", "77", "78"]; smileys = []; for (var sm = 0, ls = smlist.length; sm < ls; sm += 1) { smileys[smlist[sm]] = "http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/" + smlist[sm] + ".gif"; } var smdiv = document.createElement("div"); smdiv.className = "smileysdiv"; COMMENTOR.changeText(smdiv, ""); for (sm = 0, ls = smlist.length; sm < ls; sm += 1) { //this would be so much easier with innerHTML, darn you standards fetish! smdiv.innerHTML += "<span class=\"smbox\"><a href=\"javascript:void(0);\" onclick=\"COMMENTOR.rtxt('::" + smlist[sm] + "::', COMMENTOR.$('komen')); return false;\"><img class=\"smiley\" title=\"" + smlist[sm] + "\" src=\"" + smileys[smlist[sm]] + "\"></a></span>"; } for (var s in COMMENTOR.inputstyle) { if (typeof COMMENTOR.inputstyle[s] !== "function") { COMMENTOR.$insty += s + ":" + COMMENTOR.inputstyle[s] + ";"; } } var htmlspaces = "&nb" + "sp;"; var commform = "<div style=\"display:block;padding:6px 11px;\" class=\"quicktestiprev\">" + "<p style=\"font-style: italic; font-size: 90%\">You Can Also Dress Up Your Testimonial Or Comment With HTML, CSS, And Embed Images & Video! " + "<a href=\"javascript:popup('/info/helpmedia.php',450,400,'yes');\">Click Here</a>" + htmlspaces + "To Find Out How To <a href=\"javascript:popup('/info/helpmedia.php',450,400,'yes');\">" + "Add Videos And Images</a>.</p>" + "<form id=\"testimonial_form\" name=\"testimonial_form\" method=\"post\" onsubmit=\"return checkFormSubmit('testimonial_form');\">" + "<input type=\"hidden\" name=\"testimonial_firstname\" value=\"" + pageOwnerFName + "\">" + "<input type=\"hidden\" name=\"testimonial_uid\" value=\"" + pageViewerID + "\">" + "<input type=\"hidden\" name=\"_submitted\" value=\"1\">" + "<div style=\"width:" + COMMENTOR.$width + "\">" + "<a href=\"javascript:void(0);\"><img border=\"0\" src=\"http://h1.ripway.com/feruzz/friendster/photo/commentor/bold.gif\" name=\"bold\" onclick=\"COMMENTOR.insertTag('<b>','</b>');\" class=\"postimage\" title=\"bold\"></a>" + htmlspaces + "<a href=\"javascript:void(0);\"><img border=\"0\" src=\"http://h1.ripway.com/feruzz/friendster/photo/commentor/italic.gif\" name=\"italic\" onclick=\"COMMENTOR.insertTag('<i>','</i>');\" class=\"postimage\" title=\"italic\"></a>" + htmlspaces + "<a href=\"javascript:void(0);\"><img border=\"0\" src=\"http://h1.ripway.com/feruzz/friendster/photo/commentor/under.gif\" name=\"underline\" onclick=\"COMMENTOR.insertTag('<span style=text-decoration:underline>','</span>');\" class=\"postimage\" title=\"underline\"></a>" + htmlspaces + "<a href=\"javascript:void(0);\"><img border=\"0\" src=\"http://h1.ripway.com/feruzz/friendster/photo/commentor/sup.gif\" name=\"sup\" onclick=\"COMMENTOR.insertTag('<big>','</big>');\" class=\"postimage\" title=\"superscript\"></a>" + htmlspaces + "<a href=\"javascript:void(0);\"><img border=\"0\" src=\"http://h1.ripway.com/feruzz/friendster/photo/commentor/sub.gif\" name=\"sub\" onclick=\"COMMENTOR.insertTag('<small>','</small>');\" class=\"postimage\" title=\"subscript\"></a>" + htmlspaces + "<a href=\"javascript:void(0);\"><img border=\"0\" src=\"http://h1.ripway.com/feruzz/friendster/photo/commentor/strike.gif\" name=\"strike\" onclick=\"COMMENTOR.insertTag('<del>','</del>');\" class=\"postimage\" title=\"strike\"></a>" + htmlspaces + "<a href=\"javascript:void(0);\"><img border=\"0\" src=\"http://h1.ripway.com/feruzz/friendster/photo/commentor/center.gif\" name=\"center\" onclick=\"COMMENTOR.insertTag('<div align=center>','</div>');\" class=\"postimage\" title=\"center\"></a>" + htmlspaces + "<select name=\"fnt_color\" id=\"fnt_color\" onChange=\"COMMENTOR.insertTag('<span style=color:' + COMMENTOR.$('testimonial_form').fnt_color.options[fnt_color.selectedIndex].value + '>', '</span>'); COMMENTOR.$('testimonial_form').fnt_color.options[0].selected=true\">" + "<option value=\"\">Color" + "<option value=\"#F0F8FF\">AliceBlue<option value=\"#FAEBD7\">AntiqueWhite<option value=\"#00FFFF\">Aqua<option value=\"#7FFFD4\">AquaMarine" + "<option value=\"#F0FFFF\">Azure<option value=\"#F5F5DC\">Beige<option value=\"#FFE4C4\">Bisque<option value=\"#000000\">Black" + "<option value=\"#FFEBCD\">BlanchedAlmond<option value=\"#0000FF\">Blue<option value=\"#8A2BE2\">BlueViolet<option value=\"#A52A2A\">Brown" + "<option value=\"#DEB887\">BurlyWood<option value=\"#5F9EA0\">CadetBlue<option value=\"#7FFF00\">Chartreuse<option value=\"#D2691E\">Chocolate" + "<option value=\"#FF7F50\">Coral<option value=\"#6495ED\">CornflowerBlue<option value=\"#FFF8DC\">Cornsilk<option value=\"#DC143C\">Crimson" + "<option value=\"#00FFFF\">Cyan<option value=\"#00008B\">DarkBlue<option value=\"#008B8B\">DarkCyan<option value=\"#B8860B\">DarkGoldenRod" + "<option value=\"#A9A9A9\">DarkGray<option value=\"#006400\">DarkGreen<option value=\"#BDB76B\">DarkKhaki<option value=\"#8B008B\">DarkMagenta" + "<option value=\"#556B2F\">DarkOliveGreen<option value=\"#FF8C00\">DarkOrange<option value=\"#9932CC\">DarkOrchid<option value=\"#8B0000\">DarkRed" + "<option value=\"#E9967A\">DarkSalmon<option value=\"#8FBC8F\">DarkSeaGreen<option value=\"#483D8B\">DarkSlateBlue<option value=\"#2F4F4F\">DarkSlateGray" + "<option value=\"#00CED1\">DarkTurquoise<option value=\"#9400D3\">DarkViolet<option value=\"#FF1493\">DeepPink<option value=\"#00BFFF\">DeepSkyBlue" + "<option value=\"#696969\">DimGray<option value=\"#1E90FF\">DodgerBlue<option value=\"#B22222\">FireBrick<option value=\"#FFFAF0\">FloralWhite" + "<option value=\"#228B22\">ForestGreen<option value=\"#FF00FF\">Fuchsia<option value=\"#DCDCDC\">Gainsboro<option value=\"#F8F8FF\">GhostWhite" + "<option value=\"#FFD700\">Gold<option value=\"#DAA520\">GoldenRod<option value=\"#808080\">Gray<option value=\"#008000\">Green" + "<option value=\"#ADFF2F\">GreenYellow<option value=\"#F0FFF0\">HoneyDew<option value=\"#FF69B4\">HotPink<option value=\"#CD5C5C\">IndianRed" + "<option value=\"#4B0082\">Indigo<option value=\"#FFFFF0\">Ivory<option value=\"#F0E68C\">Khaki<option value=\"#E6E6FA\">Lavender" + "<option value=\"#FFF0F5\">LavenderBlush<option value=\"#7CFC00\">LawnGreen<option value=\"#FFFACD\">LemonChiffon<option value=\"#ADD8E6\">LightBlue" + "<option value=\"#F08080\">LightCoral<option value=\"#E0FFFF\">LightCyan<option value=\"#FAFAD2\">LightGoldenRodYellow<option value=\"#D3D3D3\">LightGray" + "<option value=\"#90EE90\">LightGreen<option value=\"#FFB6C1\">LightPink<option value=\"#FFA07A\">LightSalmon<option value=\"#20B2AA\">LightSeaGreen" + "<option value=\"#87CEFA\">LightSkyBlue<option value=\"#778899\">LightSlateGray<option value=\"#B0C4DE\">LightSteelBlue<option value=\"#FFFFE0\">LightYellow" + "<option value=\"#00FF00\">Lime<option value=\"#32CD32\">LimeGreen<option value=\"#FAF0E6\">Linen<option value=\"#FF00FF\">Magenta" + "<option value=\"#800000\">Maroon<option value=\"#66CDAA\">MediumAquaMarine<option value=\"#0000CD\">MediumBlue<option value=\"#BA55D3\">MediumOrchid" + "<option value=\"#9370D8\">MediumPurple<option value=\"#3CB371\">MediumSeaGreen<option value=\"#7B68EE\">MediumSlateBlue<option value=\"#00FA9A\">MediumSpringGreen" + "<option value=\"#48D1CC\">MediumTurquoise<option value=\"#C71585\">MediumVioletRed<option value=\"#191970\">MidnightBlue<option value=\"#F5FFFA\">MintCream" + "<option value=\"#FFE4E1\">MistyRose<option value=\"#FFE4B5\">Mocassin<option value=\"#FFDEAD\">NavajoWhite<option value=\"#000080\">Navy" + "<option value=\"#FDF5E6\">OldLace<option value=\"#808000\">Olive<option value=\"#6B8E23\">OliveDrab<option value=\"#FFA500\">Orange" + "<option value=\"#FF4500\">OrangeRed<option value=\"#EEE8AA\">PaleGoldenRod<option value=\"#98FB98\">PaleGreen<option value=\"#AFEEEE\">PaleTurquoise" + "<option value=\"#D87093\">PaleVioletRed<option value=\"#FFEFD5\">PapayaWhip<option value=\"#FFDAB9\">PeachPuff<option value=\"#CD853F\">Peru" + "<option value=\"#FFC0CB\">Pink<option value=\"#DDA0DD\">Plum<option value=\"#B0E0E6\">PowderBlue<option value=\"#800080\">Purple" + "<option value=\"#FF0000\">Red<option value=\"#BC8F8F\">RosyBrown<option value=\"#4169E1\">RoyalBlue<option value=\"#8B4513\">SaddleBrown" + "<option value=\"#FA8072\">Salmon<option value=\"#F4A460\">SandyBrown<option value=\"#2E8B57\">SeaGreen<option value=\"#FFF5EE\">SeaShell" + "<option value=\"#A0522D\">Sienna<option value=\"#C0C0C0\">Silver<option value=\"#87CEEB\">SkyBlue<option value=\"#6A5ACD\">SlateBlue" + "<option value=\"#708090\">SlateGray<option value=\"#FFFAFA\">Snow<option value=\"#00FF7F\">SpringGreen<option value=\"#4682B4\">SteelBlue" + "<option value=\"#D2B48C\">Tan<option value=\"#008080\">Teal<option value=\"#D8BFD8\">Thistle<option value=\"#FF6347\">Tomato" + "<option value=\"#40E0D0\">Turquoise<option value=\"#EE82EE\">Violet<option value=\"#F5DEB3\">Wheat<option value=\"#FFFFFF\">White" + "<option value=\"#F5F5F5\">WhiteSmoke<option value=\"#FFFF00\">Yellow<option value=\"#9ACD32\">YellowGreen" + "</select>" + htmlspaces + "<select name=\"fnt_face\" id=\"fnt_face\" onChange=\"COMMENTOR.insertTag('<span style=font-family:' + COMMENTOR.$('testimonial_form').fnt_face.options[fnt_face.selectedIndex].value + '>', '</span>'); COMMENTOR.$('testimonial_form').fnt_face.options[0].selected=true\">" + "<option value=\"\">Font" + "<option value=\"serif\" style=\"font-family:serif\">Serif" + "<option value=\"monospace\" style=\"font-family:monospace\">Monospace" + "<option value=\"Century\" style=\"font-family:Century\">Century" + "<option value=\"Courier\" style=\"font-family:Courier\">Courier" + "</select>" + "</div>" + "<table class=\"formtable\"><tr><td class=\"value\">" + "<textarea id=\"komen\" class=\"bgOne\" rows=\"7\" style=\"width:" + COMMENTOR.$width + "\" name=\"body\" onMouseOver=\"this.className='bgTwo'\" onMouseOut=\"this.className='bgOne'\" onKeyDown=\"textCounter(COMMENTOR.$('komen'),COMMENTOR.$('minputcount')," + COMMENTOR.$max + ");\" onKeyUp=\"textCounter(COMMENTOR.$('komen'),COMMENTOR.$('minputcount')," + COMMENTOR.$max + ");\"></textarea>" + "<div style=\"width:" + COMMENTOR.$width + "\">" + "<a href=\"javascript:void(0);\" onclick=\"COMMENTOR.rstxtbox('komen', 0, 10);\"><img alt=\"\" src=\"http://h1.ripway.com/feruzz/friendster/photo/rs_vb.gif\" style=\"margin: 2px\" /></a>" + "<a href=\"javascript:void(0);\" onclick=\"COMMENTOR.rstxtbox('komen', 0, -10);\"><img alt=\"\" src=\"http://h1.ripway.com/feruzz/friendster/photo/rs_vs.gif\" style=\"margin: 2px\" /></a>" + "</div>" + "</td></tr><tr><td class=\"value\">" + "<input style=\"" + COMMENTOR.$insty + "\" type=\"button\" name=\"Submit\" href=\"#quicktesti\" onMouseOver=\"window.status='Send';return true;\" onclick=\"javascript:COMMENTOR.insertSM();COMMENTOR.$('testimonial_form').action='http://www.friendster.com/testimonials.php?uid=" + pageOwnerID + "" + COMMENTOR.$amp + "action=add';COMMENTOR.$('testimonial_form').submit();javascript:COMMENTOR.sendForm();\" value=\"Submit\">" + htmlspaces + "<input style=\"" + COMMENTOR.$insty + "\" type=\"button\" value=\"Preview\" onclick=\"javascript:COMMENTOR.insertSM();javascript:COMMENTOR.togglecomprev(0);\">" + htmlspaces + "<input style=\"" + COMMENTOR.$insty + "\" class=\"clearButtons\" type=\"reset\" name=\"cancel\" value=\"Clear\" maxlength=\"25\">" + htmlspaces + "<input style=\"" + COMMENTOR.$insty + "\" class=\"closeButtons\" type=\"reset\" name=\"cancel\" onclick=\"javascript:COMMENTOR.cancelForm();\" value=\"Close\">" + htmlspaces + "<input id=\"show\" style=\"" + COMMENTOR.$insty + "\" class=\"Smilies\" type=\"button\" name=\"Smilies\" onclick=\"javascript:COMMENTOR.showForm();\" value=\"Open Smilies\">" + "<input id=\"close\" style=\"display:none;" + COMMENTOR.$insty + "\" class=\"Smilies\" type=\"button\" name=\"Smilies\" onclick=\"javascript:COMMENTOR.hideForm();\" value=\"Close Smilies\">" + "<div class=\"dc\"><span class=\"q\">Characters" + htmlspaces + "remaining" + htmlspaces + "</span><input id=\"minputcount\" readonly maxlength=\"4\" size=\"4\" value=\"" + COMMENTOR.$max + "\" name=\"inputcount\"></div>" + "<div id=\"hide\" style=\"display:none;width:" + COMMENTOR.$width + "\" align=\"center\">" + smdiv.innerHTML + "</div>" + "</td></tr></table></form></div>"; COMMENTOR.commentBox("Quick Testimonial", commform, "quicktesti", /publiccomments/i, "above"); window.location.href = "#quicktesti"; COMMENTOR.createcomprev(); }, togglecomprev: function (prevflag) { var el = COMMENTOR.$("prevComment"); if (prevflag === 0) { var commCode1 = COMMENTOR.$("quicktesti").getElementsByTagName("textarea")[0].value; var commCode2 = COMMENTOR.$("quicktesti").getElementsByTagName("textarea")[0].innerHTML; if (commCode1 !== "") { el = COMMENTOR.replaceHtml(el, decodeURIComponent(commCode1)); } else { el = COMMENTOR.replaceHtml(el, decodeURIComponent(commCode2)); } COMMENTOR.$("commentprevbox").style.display = ""; } else { COMMENTOR.changeText(el, ""); COMMENTOR.$("commentprevbox").style.display = "none"; } }, createcomprev: function () { var d = document; try { var prevBox = d.createElement("div"); prevBox.id = "commentprevbox"; prevBox.style.display = "none"; prevBox.style.padding = "15px"; prevBox.appendChild(d.createElement("div")); prevBox.getElementsByTagName("div")[0].id = "prevComment"; prevBox.getElementsByTagName("div")[0].style.padding = "5px"; prevBox.getElementsByTagName("div")[0].style.border = "thin"; prevBox.getElementsByTagName("div")[0].style.borderStyle = "solid"; prevBox.appendChild(d.createElement("div")); prevBox.getElementsByTagName("div")[1].align = "center"; prevBox.getElementsByTagName("div")[1].style.padding = "5px"; var cbutton = d.createElement("input"); cbutton.style.padding = "4px 0"; cbutton.style.margin = "10px 0 6px 0"; cbutton.style.fontFamily = "Arial"; cbutton.style.fontWeight = "bold"; cbutton.style.color = "#17728f"; cbutton.style.border = "1px solid #196B91"; cbutton.style.backgroundColor = "#ffffff"; cbutton.type = "button"; cbutton.value = "Hide Preview"; cbutton.onclick = function () { COMMENTOR.togglecomprev(1); }; prevBox.getElementsByTagName("div")[1].appendChild(cbutton); COMMENTOR.$("quicktesti").appendChild(prevBox); } catch (er) { COMMENTOR.createcomprev(); } }, hideStatus: function () { var d = document; try { var sty = d.createElement("style"); sty.type = "text/css"; COMMENTOR.changeText(sty, ".statusmessagebox{display:none;}.postimage{cursor:hand;}.quicktesti a:hover img{background-color:#C2CFE5;cursor:hand;}"); d.body.appendChild(sty); } catch (err) {} try { d.styleSheets[document.styleSheets.length - 1].addRule(".statusmessagebox", "display:none;"); d.styleSheets[document.styleSheets.length - 1].addRule(".postimage", "cursor:hand;"); d.styleSheets[document.styleSheets.length - 1].addRule(".quicktesti a:hover img", "background-color:#C2CFE5;cursor:hand;"); } catch (errs) {} }, sendForm: function () { var d = document; COMMENTOR.changeText(COMMENTOR.$("quicktesti").getElementsByTagName("h2")[0], "Posting comment...Please wait..."); var postComment = d.createElement("div"); postComment.className = "boxcontent"; postComment.align = "center"; postComment.appendChild(d.createElement("img")); postComment.getElementsByTagName("img")[0].src = "http://h1.ripway.com/feruzz/friendster/photo/commentor/loader1.gif"; if (COMMENTOR.$("content_quicktesti") !== "") { COMMENTOR.$("content_quicktesti").parentNode.replaceChild(postComment, COMMENTOR.$("content_quicktesti")); } COMMENTOR.$("commentprevbox").parentNode.removeChild(COMMENTOR.$("commentprevbox")); window.location.href = "#quicktesti"; }, cancelForm: function () { window.setTimeout("COMMENTOR.$('quicktesti').parentNode.removeChild(COMMENTOR.$('quicktesti'));window.location.href='#18'", 2000); COMMENTOR.init(); }, showForm: function () { if (COMMENTOR.$("hide").style.display !== "none") { COMMENTOR.hideForm(); } else { COMMENTOR.$("hide").style.display = ""; COMMENTOR.$("show").style.display = "none"; COMMENTOR.$("close").style.display = ""; } }, hideForm: function () { if (COMMENTOR.$("hide").style.display !== "") { COMMENTOR.showForm(); } else { COMMENTOR.$("hide").style.display = "none"; COMMENTOR.$("show").style.display = ""; COMMENTOR.$("close").style.display = "none"; } }, insertSM: function () { var allsmileys = COMMENTOR.$("komen").value.match(/::(\w+)?::/gim); if (allsmileys) { for (var sm = 0, ls = allsmileys.length; sm < ls; sm += 1) { if (smileys[allsmileys[sm].match(/\w+/)[0]] !== "undefined") { COMMENTOR.$("komen").value = COMMENTOR.$("komen").value.replace(/::(\w+)?::/gim, "<img src=\"" + smileys[allsmileys[sm].match(/\w+/)[0]] + "\" border=\"0\">"); } } } }, //faster than innerHTML :) replaceHtml: function (el, html) { var oldEl = typeof el === "string" ? COMMENTOR.$(el) : el; /*@cc_on @if (@_win32 || @_win64) oldEl.innerHTML = html; return oldEl; @end @*/ var newEl = oldEl.cloneNode(false); newEl.innerHTML = html; oldEl.parentNode.replaceChild(newEl, oldEl); return newEl; }, innerTextFeature: function () { var obj = (document.getElementsByTagName("body")[0].innerText !== undefined) ? true : false; return obj; }, changeText: function (elem, changeVal) { if (!COMMENTOR.innerTextFeature()) { elem.textContent = changeVal; } else { elem.innerText = changeVal; } }, rtxt: function (text, textarea) { if (typeof(textarea.caretPos) !== "undefined" && textarea.createTextRange) { var caretPos = textarea.caretPos; caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) === " " ? text + " ": text; caretPos.select(); } else if (typeof(textarea.selectionStart) !== "undefined") { var begin = textarea.value.substr(0, textarea.selectionStart); var end = textarea.value.substr(textarea.selectionEnd); var scrollPos = textarea.scrollTop; textarea.value = begin + text + end; if (textarea.setSelectionRange) { textarea.focus(); textarea.setSelectionRange(begin.length + text.length, begin.length + text.length); } textarea.scrollTop = scrollPos; } else { textarea.value += text; textarea.focus(textarea.value.length - 1); } }, insertTag: function (open, close) { var d = document; var msgfield = (d.all) ? d.all.body : COMMENTOR.$("testimonial_form").body; if (d.selection && d.selection.createRange) { msgfield.focus(); var sel = d.selection.createRange(); sel.text = open + sel.text + close; msgfield.focus(); } else if (msgfield.selectionStart || msgfield.selectionStart <= 0) { var startPos = msgfield.selectionStart; var endPos = msgfield.selectionEnd; msgfield.value = msgfield.value.substring(0, startPos) + open + msgfield.value.substring(startPos, endPos) + close + msgfield.value.substring(endPos, msgfield.value.length); msgfield.selectionStart = msgfield.selectionEnd = endPos + open.length + close.length; msgfield.focus(); } else { msgfield.value += open + close; msgfield.focus(); } return; }, //Expand the textarea rstxtbox: function (name, colInc, rowInc) { try { var objek; if (COMMENTOR.$IE4) { objek = document.all[name]; } else { objek = COMMENTOR.$(name); } objek.rows += rowInc; objek.cols += colInc; } catch (e) {} }, $: function () { var d = document; var elements = []; for (var i = 0, j = arguments.length; i < j; i += 1) { var element = arguments[i]; if (typeof element === "string") { element = d.getElementById(element); } if (arguments.length === 1) { return element; } elements.push(element); } return elements; }, commentBox: function (head, code, id, sibling, x) { var d = document; var sbdiv = d.createElement("div"); sbdiv.className = "commonbox " + id; sbdiv.id = id; if (!head) { head = ""; } else { head = "<h2>" + head + "</h2>"; } sbdiv.innerHTML = head; sbdiv.appendChild(d.createElement("div")); sbdiv.getElementsByTagName("div")[0].id = "content_" + id; sbdiv.getElementsByTagName("div")[0].innerHTML = code; var sbli = d.createElement("li"); sbli.appendChild(sbdiv); if (!x) { COMMENTOR.getModuleByClassName(sibling)[0].parentNode.parentNode.appendChild(sbli); } else if (x === "below") { COMMENTOR.getModuleByClassName(sibling)[0].parentNode.appendChild(sbli); } else if (x === "above") { var ul = COMMENTOR.getModuleByClassName(sibling)[0]; ul.parentNode.parentNode.insertBefore(sbli, ul.parentNode); } }, getModuleByClassName: function (sClass) { var d = document; var elm = []; var els = d.getElementsByTagName("*") || d.all; for (var j = 0, k = els.length; j < k; j += 1) { if (new RegExp(sClass).test(els[j].className)) { elm.push(els[j]); } } return elm; } }; })(); addEvent.load(window, "load", COMMENTOR.init);[/spoiler]

Board footer

© 2024 F Talk

Current time is 07:56

[ 12 queries - 0.611 second ]
Privacy Policy