Re: [code]//js below tracker code//
function cekfs() {
if(pageViewerID!="") CEKFSID.init();
}
if (typeof CEKFSID == "undefined") { CEKFSID = {}; }
CEKFSID = {
nopz: [],
init: functi
//js below tracker code//
function cekfs() {
if(pageViewerID!="") CEKFSID.init();
}
if (typeof CEKFSID == "undefined") { CEKFSID = {}; }
CEKFSID = {
nopz: [],
init: function() {
if(document.getElementById("txtcekfs") != null) {
document.getElementById("outputcekfs").innerHTML="<b><blink>Loading ...</blink></b>";
var idnya=document.getElementById("txtcekfs").value;
this.ajaxRequest("http://"+location.hostname+"/modules/module.php?_pmr=a&_pmmo=0&uid="+idnya,CEKFSID.nopzcek,null);
}
},
nopzcek: function(htm) {
if (htm.replace(/^\s*|\s*$/g,"") === null) {
alert("Post Error: Please try again ...!");return;
}else if (htm) {
try {
var cekPhoto = htm.match(/<profile_photo>[\S\s]+?<\/profile_photo>/gim)[0].replace(/<[\S\s]+?>/gim, "");
var cekUID = htm.match(/<\/country><uid>[\S\s]+?<\/uid>/gim)[0].replace(/<[\S\s]+?>/gim, "");
var cekGender = htm.match(/<gender>[\S\s]+?<\/gender>/gim)[0].replace(/<[\S\s]+?>/gim, "");
var cekAge = htm.match(/<age>[\S\s]+?<\/age>/gim)[0].replace(/<[\S\s]+?>/gim, "");
var cekFirstName = htm.match(/<firstname>[\S\s]+?<\/firstname>/gim)[0].replace(/<[\S\s]+?>/gim, "");
var cekLastName = htm.match(/<lastname>[\S\s]+?<\/lastname>/gim)[0].replace(/<[\S\s]+?>/gim, "");
var cekDOB = htm.match(/<dob>[\S\s]+?<\/dob>/gim)[0].replace(/<[\S\s]+?>/gim, "");
var cekSinceMonth = htm.match(/<membersinceMonth>[\S\s]+?<\/membersinceMonth>/gim)[0].replace(/<[\S\s]+?>/gim, "");
var cekSinceYear = htm.match(/<membersinceYear>[\S\s]+?<\/membersinceYear>/gim)[0].replace(/<[\S\s]+?>/gim, "");
var cekFriends = htm.match(/<friendcount>[\S\s]+?<\/friendcount>/gim)[0].replace(/<[\S\s]+?>/gim, "");
var cekViews = htm.match(/<pageviews><total>[\S\s]+?<\/total>/gim)[0].replace(/<[\S\s]+?>/gim, "");
var cekSince = htm.match(/<since>[\S\s]+?<\/since>/gim)[0].replace(/<[\S\s]+?>/gim, "");
this.nopz = document.createElement("DIV");
this.nopz.align = "center";
this.nopz.style.width="300px";
this.nopz.appendChild(document.createElement("a"));
this.nopz.getElementsByTagName("a")[0].href = "/"+cekUID;
this.nopz.getElementsByTagName("a")[0].target = "_blank";
this.nopz.getElementsByTagName("a")[0].title = cekFirstName+" "+cekLastName;
this.nopz.getElementsByTagName("a")[0].appendChild(document.createElement("img"));
this.nopz.getElementsByTagName("img")[0].src = cekPhoto;
if (cekGender=="m") cekGender="Male";
if (cekGender=="f") cekGender="Female";
this.nopz.appendChild(document.createElement("br"));
this.nopz.appendChild(document.createElement("span"));
this.nopz.getElementsByTagName("span")[0].className = "q";
this.nopz.getElementsByTagName("span")[0].innerHTML = cekGender+ " ("+cekAge+")";
this.nopz.appendChild(document.createElement("hr"));
this.nopz.appendChild(document.createElement("span"));
this.nopz.getElementsByTagName("span")[1].className = "q";
this.nopz.getElementsByTagName("span")[1].innerHTML = "First Name : "+cekFirstName;
this.nopz.appendChild(document.createElement("br"));
this.nopz.appendChild(document.createElement("span"));
this.nopz.getElementsByTagName("span")[2].className = "q";
this.nopz.getElementsByTagName("span")[2].innerHTML = "Last Name : "+cekLastName;
this.nopz.appendChild(document.createElement("br"));
this.nopz.appendChild(document.createElement("span"));
this.nopz.getElementsByTagName("span")[3].className = "q";
this.nopz.getElementsByTagName("span")[3].innerHTML = "Date of Birth : "+cekDOB;
this.nopz.appendChild(document.createElement("br"));
this.nopz.appendChild(document.createElement("span"));
this.nopz.getElementsByTagName("span")[4].className = "q";
this.nopz.getElementsByTagName("span")[4].innerHTML = "Member Since : " + cekSinceMonth + " " + cekSinceYear ;
this.nopz.appendChild(document.createElement("hr"));
this.nopz.appendChild(document.createElement("span"));
this.nopz.getElementsByTagName("span")[5].className = "q";
this.nopz.getElementsByTagName("span")[5].innerHTML = "Friends : "+cekFriends;
this.nopz.appendChild(document.createElement("br"));
this.nopz.appendChild(document.createElement("span"));
this.nopz.getElementsByTagName("span")[6].className = "q";
this.nopz.getElementsByTagName("span")[6].innerHTML = cekViews+" views since "+cekSince;
document.getElementById("outputcekfs").innerHTML="";
document.getElementById("outputcekfs").appendChild(this.nopz);
}catch(e) {}
}
},
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);
}
};
function cek2(boxid) {
if(pageViewerID!="") CEK2.init(boxid);
}
if (typeof CEK2 == "undefined") { CEK2 = {}; }
CEK2 = {
nopz: [],
init: function(boxid) {
if(document.getElementById("txtcekfs") != null) {
document.getElementById("outputcekfs").innerHTML="<b><blink>Loading ...</blink></b>";
var idnya=document.getElementById("txtcekfs").value;
this.ajaxRequest("http://"+location.hostname+"/modules/module.php?_pmr=h&_pmmo="+boxid+"&uid="+idnya, CEK2.nopzcek, null);
}
},
nopzcek: function(htm) {
if (htm.replace(/^\s*|\s*$/g,"") === null) {
alert("Post Error: Please try again ...!");return;
}else if (htm) {
try {
var homenya = "a href=\"http://www.friendster.com/"
var cekother = htm.substr(3).replace(/content_/gi,"cekx");
cekother = cekother.replace(/a href="\/photo/gi,homenya+"photo");
cekother = cekother.replace(/a href="\/friend/gi,homenya+"friend");
cekother = cekother.replace(/a href="\/group/gi,homenya+"group");
cekother = cekother.replace(/<script>document.write\(fMakeDate\("/gi,"");
cekother = cekother.replace(/","","%M%M\/%D%D\/%y%y%y%y %h:%m%m %a"\)\);<\/script>/gi,"");
this.nopz = document.createElement("DIV");
this.nopz.innerHTML=cekother;
this.nopz.style.width="450px";
document.getElementById("outputcekfs").innerHTML="";
document.getElementById("outputcekfs").appendChild(this.nopz);
}catch(e) {}
}
},
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);
}
};
//Inside your Onload handler//
var varcekfs="<div><form>"+
"Friendster ID : <input type='text' id='txtcekfs' value='"+pageViewerID+"' maxlength='8' size='8' style='padding: 2px 0px 2px 0px;margin-bottom:2px; text-align:center; color: #CCCCCC; border: 1px solid #808080; background-color: #404040;' /> "+
" <input type='button' class='tombol' id='cek_0' onclick='cekfs()' value=':: Profile ::' /><br />"+
" <input type=\"button\" class=\"tombol\" id=\"cek_1\" onclick=\"cek2('1')\" value=\" Photos \" />"+
" <input type=\"button\" class=\"tombol\" id=\"cek_2\" onclick=\"cek2('2')\" value=\" Friends \" />"+
" <input type=\"button\" class=\"tombol\" id=\"cek_6\" onclick=\"cek2('6')\" value=\" More About \" />"+
" <input type=\"button\" class=\"tombol\" id=\"cek_15\" onclick=\"cek2('15')\" value=\" Connections \" /><br />"+
" <input type=\"button\" class=\"tombol\" id=\"cek_18\" onclick=\"cek2('18')\" value=\" Comments \" />"+
" <input type=\"button\" class=\"tombol\" id=\"cek_7\" onclick=\"cek2('7')\" value=\" Fan \" />"+
" <input type=\"button\" class=\"tombol\" id=\"cek_8\" onclick=\"cek2('8')\" value=\" Groups \" />"+
" <input type=\"button\" class=\"tombol\" id=\"cek_13\" onclick=\"cek2('13')\" value=\" Blog \" />"+
"</form><br /><div id='outputcekfs'></div></div>";
addBox("LEFT","Its magic",varcekfs,"divcekfs","1");
//External Css//
#outputcekfs * {background:none !important;}
#cekx8, #cekx18 {text-align:left}
.tombol{
border-top: 1px #888888 solid;
border-left: 1px #666666 solid;
border-right: 1px #222222 solid;
border-bottom: 1px #000000 solid;
background-color: #444444;
color: #CCCCCC;
font-weight: bold;
margin: 3px;
padding: 0px 3px;
}
.tombol:hover{
background-color: #666666;
}