2008-08-04 15:49:42

CoWoCuPu
» FTalkElite
FTalk Level: zero
4881
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-

[b]RED_LINE[/b] karena loe baro... silah'kan masuk [url=http://theftalk.com/t36526-Compiled-Tutorials-%3A-Tweak-FS-(CSS-and-JS).html]SINI[/url] ea... and d'pelajarin satu.satu,.... pasti bsa kok! ga munggkin engga... btw,, kalo sih ada masalah,, silah'kan masuk thread ini ea :D [b]nyubi[/b] emang loe sekarang pake webhost ape bro...? masi ripway ato uda ganti ? btw,, kalo mao code .php,.. silah'kan minta yang punya langsung ea (bro Kherminator) soal'nya sini ga bawa om.. ma'ap ea :) [b]hari risandi[/b] bikin CBOX'nya dolo ea... d'sini nih :arrow: [b][url=http://cbox.ws/]Clcik pelan.pelan[/url][/b] kalo uda... masuk'in kode ini d'bagian C [spoiler]/** * Who's Right Click CBOX * Copyright 2008 by FeRuZZ © http://profiles.friendster.com/feruzz * Updates: May 24, 2008 **/ /* just get rid if you already have one */ /*global pageViewerLangPref, window, location, pageOwnerID*/ if (pageViewerLangPref !== "en-US") { window.location.href = "http://" + location.hostname + "/" + pageOwnerID + "?lang=en-US&updatelang=1"; } /*global EventHandler*/ (function () { EventHandler = { add: 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]; } }, remove: function (obj, type, fn) { try { obj.removeEventListener(type, fn, false); } catch (e) { try { obj.detachEvent("on" + type, fn); } catch (er) { obj["on" + type] = null; } } } }; })(); /*global WHORC, document, navigator*/ (function () { WHORC = { rccboxform: null, date: Date().replace(/\([\S\s]*?\)/, ""), ifstyle: [ "100%", //width "300", //height "auto", //scrolling "yes" //allowtransparency ], base: { "cboxdiv": ["[b]www[/b]", "[b]XXXXXX[/b]", "[b]XXXX[/b]"] }, details: { gender: null, age: null, status: null, location: null, seek: null, since: null, profileViewed: null, friends: null }, 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, profileViewed: /\/profilehistory\.php">([\S\s]*?)<\/a>/i, friends: /viewall"><a\s*href=[\S\s]*?\/friends\/[\d]*?">View\s*All\s*\(([\d]*?)\)<\/a><\/div>/i }, init: function () { /*global pageViewerID, pageViewerFName, addNewBox*/ if (window.location.href.indexOf("user.php") !== -1) { WHORC.ajaxRequest("GET", "http://" + location.hostname + "/user.php?uid=" + pageViewerID, true, null, WHORC.clickers, null); } else { WHORC.ajaxRequest("GET", "http://" + location.hostname + "/" + pageViewerID, true, null, WHORC.clickers, null); } }, clickers: function (htm) { if (htm.replace(/^\s*|\s*$/g, "") === "") { window.alert("ERROR: Empty xmlresponse! \n Unable to parse your details!"); return; } else if (htm) { for (var val in WHORC.details) { if (typeof WHORC.details[val] !== "function") { try { WHORC.details[val] = new RegExp(WHORC.regexp[val]).exec(htm)[1]; } catch (e) { WHORC.details[val] = ""; } } } if (WHORC.details.seek === "") { WHORC.details.seek = "Just looking around"; } for (var seeboks in WHORC.base) { if (typeof WHORC.base[seeboks] !== "function") { var htmlspaces = "&nb" + "sp;"; var htmlbulls = "&bu" + "ll;"; WHORC.rccboxform = "<iframe frameborder=\"0\" width=\"" + WHORC.ifstyle[0] + "\" height=\"" + WHORC.ifstyle[1] + "\" scrolling=\"" + WHORC.ifstyle[2] + "\" allowtransparency=\"" + WHORC.ifstyle[3] + "\" marginheight=\"2\" marginwidth=\"2\" src=\"http://" + WHORC.base[seeboks][0] + ".cbox.ws/box/?boxid=" + WHORC.base[seeboks][1] + "&boxtag=" + WHORC.base[seeboks][2] + "&sec=main\" name=\"rcPost\" id=\"rcPost\"></iframe>" + "<div style=\"display:none\">" + "<form name=\"whoClick\" id=\"whoClick\" target=\"rcPost\" action=\"http://" + WHORC.base[seeboks][0] + ".cbox.ws/box/?boxid=" + WHORC.base[seeboks][1] + "&boxtag=" + WHORC.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\">" + WHORC.date + "[br]" + htmlbulls + "" + htmlspaces + "" + WHORC.details.gender + "," + htmlspaces + "" + WHORC.details.age + "," + htmlspaces + "" + WHORC.details.status.replace(/<[\S]*?>/g, "").replace(/TM/g, "[sup]TM[/sup]") + "[br]" + htmlbulls + "" + htmlspaces + "" + WHORC.details.since.replace(/^\s*[\w]*?/gi, "Member Since: ") + "[br]" + htmlbulls + "" + htmlspaces + "" + WHORC.details.seek.replace(/^\s*[\S\s]*?/gi, "Interested In: ") + "[br]" + htmlbulls + "" + htmlspaces + "" + WHORC.details.location.replace(/^\s*[\S\s]*?/gi, "Location: ") + "[br]" + htmlbulls + "" + htmlspaces + "" + WHORC.details.profileViewed.replace(/^\s*[\S\s]*?/gi, "Profile Viewed: ") + "[br]" + htmlbulls + "" + htmlspaces + "" + WHORC.details.friends.replace(/^\s*[\d]*?/gi, "Number of Friends: ") + "[br]" + htmlbulls + "" + htmlspaces + "" + navigator.appName.replace(/^\s*[\S\s]*?/gi, "Browser: ") + "[br]" + htmlbulls + "" + htmlspaces + "" + navigator.userAgent + "</textarea>" + "</form>" + "</div>"; addNewBox.init("Who's Right Click", "<div id=\"" + seeboks + "\" align=\"center\">" + WHORC.rccboxform + "</div>", "rccboxform", /friends/i, null); } } } /*global event, EVENT, Event*/ if (navigator.appName.indexOf("Internet Explorer") === -1 || (navigator.userAgent.indexOf("MSIE") !== -1 && document.all.length !== 0)) { if (document.all) { var mac = navigator.userAgent.indexOf("Mac") !== -1; var version = parseFloat("0" + navigator.userAgent.substr(navigator.userAgent.indexOf("MSIE") + 5), 10); if (!mac && version > 4) { document.oncontextmenu = function () { WHORC.whoRC(); return false; }; } else { document.onmousedown = WHORC.clicked; document.onkeydown = WHORC.clicked; } } else if (document.layers) { window.captureEvents(Event.MOUSEDOWN, Event.modifiers, Event.KEYDOWN); window.onmousedown = WHORC.clicked; window.onkeydown = WHORC.clicked; } else if (document.getElementById && !document.all) { document.oncontextmenu = function () { WHORC.whoRC(); return false; }; } } }, whoRC: function () { if ((pageViewerID !== pageOwnerID) && (pageViewerID !== "")) { if (document.whoClick) { document.whoClick.submit(); } else { document.getElementById("whoClick").submit(); } } }, clicked: function (e) { var mac = navigator.userAgent.indexOf("Mac") !== -1; if (document.all) { if (event.button === 2 || (mac && (event.ctrlKey || event.keyCode === 91))) { WHORC.whoRC(); return false; } } else { if (e.which === 3 || (mac && (e.modifiers === 2 || e.ctrlKey))) { WHORC.whoRC(); return false; } } }, ajaxRequest: function (type, url, async, param, func, handlerparam) { /** * ajaxRequest - You may not remove or change this notice. * version: 2.5 * Copyright 2008 by FeRuZZ © http://profiles.friendster.com/feruzz * * @type: "GET" | "POST" * @async: true | false * @param: string | null * @func: string | null * @handlerparam: string | null **/ /*global ActiveXObject, XMLHttpRequest*/ var xmlHttp = 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 += 1) { try { xmlHttp = window.ActiveXObject ? new ActiveXObject(msxml[x]) : new XMLHttpRequest(); break; } catch (e) { if (async) { xmlHttp = null; } } } if (typeof func === "function") { onreadystatechange = function (isTimeout) { if (!requestDone && xmlHttp && (xmlHttp.readyState === 4 || isTimeout === "timeout")) { requestDone = true; if (ival) { window.clearInterval(ival); ival = null; } if (!xmlHttp.status && location.protocol === "file:" || (xmlHttp.status >= 200 && xmlHttp.status < 300) || xmlHttp.status === 304 || xmlHttp.status === 1223) { var resPonse = (/xml/i.test(responseType)) ? xmlHttp.responseXML : xmlHttp.responseText; func(resPonse.replace(new RegExp("<script[^>]*>[\\S\\s]*?<\/script>", "gi"), ""), handlerparam); } if (async) { xmlHttp = null; } } }; } if (async) { ival = window.setInterval(onreadystatechange, 13); if (timeout > 0) { window.setTimeout(function () { if (xmlHttp) { xmlHttp.abort(); if (!requestDone) { onreadystatechange("timeout"); } } }, timeout); } } if (type === "GET" && (/GET/i.test(type))) { var ts = new Date(); var ret = url.replace(/(\?|&)_=[\S\s]*?(&|$)/, "$1_=" + (ts).getTime() + "$2"); url = ret + ((ret === url) ? (url.match(/\?/) ? "&" : "?") + "_=" + (ts).getTime() : ""); } 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 { xmlHttp.setRequestHeader("Content-type", headers); xmlHttp.setRequestHeader("Content-length", contentLength); if (xmlHttp.overrideMimeType && (navigator.userAgent.match(/Gecko\/(\d{4})/) || [0, 2005])[1] < 2005) { xmlHttp.setRequestHeader("Connection", "close"); } } catch (err) {} } xmlHttp.open(type, url, async); xmlHttp.setRequestHeader("ajaxRequest", "true"); xmlHttp.setRequestHeader("X-Requested-With", "XMLHttpRequest"); xmlHttp.setRequestHeader("If-Modified-Since", "Thu, 01 Jan 1970 00:00:00 GMT"); xmlHttp.setRequestHeader("Accept", "text/javascript, application/javascript, text/html, application/xml, text/xml, text/plain, */*"); xmlHttp.send(param); if (!async) { onreadystatechange(); } return xmlHttp; } }; })(); /*global addNewBox, document*/ (function () { addNewBox = { init: function (header, htmlString, id, sibling, insertion) { var sibdiv, sibli; try { sibdiv = document.createElement("div"); } catch (e) { sibdiv = document.createElement("<div>"); } sibdiv.className = "commonbox " + id; sibdiv.id = id; if (!header) { header = ""; } else { header = "<h2>" + header + "</h2>"; } sibdiv.innerHTML = header; try { sibdiv.appendChild(document.createElement("div")); } catch (er) { sibdiv.appendChild(document.createElement("<div>")); } if (document.getElementsByTagName) { sibdiv.getElementsByTagName("div")[0].id = "content_" + id; sibdiv.getElementsByTagName("div")[0].innerHTML = htmlString; } else if (document.all) { sibdiv.all.tags("DIV")[0].id = "content_" + id; sibdiv.all.tags("DIV")[0].innerHTML = htmlString; } try { sibli = document.createElement("li"); } catch (err) { sibli = document.createElement("<li>"); } sibli.appendChild(sibdiv); var ulTag = addNewBox.boxClassName(sibling)[0]; if (insertion === "below") { ulTag.parentNode.appendChild(sibli); } else if (insertion === "above") { ulTag.parentNode.parentNode.insertBefore(sibli, ulTag.parentNode); } else { ulTag.parentNode.parentNode.appendChild(sibli); } }, boxClassName: function (sClass) { var sTagName = "*"; var elm = []; var els = (sTagName && document.all) ? document.all : document.getElementsByTagName(sTagName); 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; } }; })(); EventHandler.add(window, "load", WHORC.init);[/spoiler] ganti yang d'bold dengan keterang'an berikud :thumbsdown: www = ganti ma kepunya'an loe... XXXXXX = cbox ID XXXX = cbox tag [b]contoh[/b] [quote][b]["www4","123456","1234"][/b][/quote]

Last edited by CoWoCuPu (2008-08-04 15:58:01)

Board footer

© 2024 F Talk

Current time is 23:04

[ 12 queries - 0.912 second ]
Privacy Policy