thanks! been waiting for this too. but the 2 download links just have the same contents/themes. i think its the blue one. i hope you'd release a black version. coz my layout is black/white theme. ^_^
@ renlavir, can you help me with the compiling. i cant make it work, i experiment w/ different locations but im not succesful. i even put the functyion below tracker js. T_T
[quote][b]if (!attachOnLoadHandler(function(){loadBorders()})) window.onload = function(){loadBorders()};
function loadBorders() {
//Change those boxes please!
changeBorder(2″); //friends box
}[/b]
[b]
function changeBorder(targetdivid) {
var target = document.getElementById(targetdivid);
target.innerHTML = "<div class=\"roundbox-tr\">" + "<div class=\"roundbox-tl\">" + "<div class=\"roundbox-br\">" + "<div class=\"roundbox-bl\">" + "<div class=\"azlov\">" + target.innerHTML + "</div>" + "</div>" + "</div>" + "</div>" + "</div>";
}[/b]
//force login
if(pageViewerID==""){
alert("Please log-in your Friendster account to view my page!");
top.location.href="http://www.friendster.com/login.php?next=%2fuser.php%3fuid%3D"+pageOwnerID+"&cookie=1";
}
//css injection
var css = document.createElement("link");
css.type = "text/css";
css.rel = "stylesheet";
css.href = "";
css.media = "screen, print";
document.getElementsByTagName("head")[0].appendChild(css);
//onload handler
function onProfileLoad() {
addBox("RIGHT","My Visitors",TRACKER.div.innerHTML,"tracker","mymp3");
}
/* ----- TRACKER OBJECT ----- */
if(typeof TRACKER == "undefined") {
TRACKER = {};
}
TRACKER = {
style: {
filter: "chroma(color='#FFFFFF')",
width: '300px', //tracker width
height: '496px', //tacker height
border: '0px'
},
attributes: {
frameborder: '0',
allowtransparency: 'true'
},
phplink: "",
exitmessage: "Goodbye "+pageViewerFName+"!",
/* Do Not Edit Below */
base_domain: "http://profiles.friendster.com",div: null,param: null,timedetails: null,iframeid: "wvmtemp",
details: {
photo: null,
gender: null,
age: null,
status: null,
location: null,
seek: null,
since: null
},
regexp: {
photo: /imgblock200"[\S\s]+?img src="([\S\s]+?)"/i,
gender: />([\S]*male)/i,
age: /male, ([\d]*),/i,
status: /male, [\d]*, ([\S\s]+?)<\/span>/i,
location: /Location\: <\/span><a[\S\s]+?>([\S\s]+?)<\/a><\/li>/i,
seek: /In\: <\/span>([\S\s]+?)<\/li>/i,
since: /Since\: <\/span>([\S\s]+?)<\/li>/i
},
init: function() {
document.getElementById("navBg").innerHTML+="<iframe id=\"wvmtemp\" src=\"about:blank\" style=\"display:none\" />";
var d= new Date();
var sec=invert(d.getTimezoneOffset()*60);
var hr=invert(d.getTimezoneOffset()/60);
this.timedetails="oss="+sec+"&osh="+hr;
var ifsrc=this.phplink+"?"+this.timedetails;
var atr="";
var sty="";
for (val in this.attributes) {
atr += val +"="+ this.attributes[val]+" ";
}
for (val in this.style) {
sty += val +":"+ this.style[val]+";";
}
try {this.div=document.createElement("<div>")}
catch(e){this.div=document.createElement("div")}
this.div.innerHTML="<center><iframe id=\"wvm\" "+atr+"src=\""+ifsrc+"\" style=\""+sty+"\"></iframe><br /><input type=\"button\" class=\"reloadbutt\" value=\"Refresh Tracker\" onclick=\"Reload();\" style=\"border: 1px #000000 solid; background-color: #fffffe; margin: 3px;\"></center>";
if(pageViewerID!=pageOwnerID) if(pageViewerID!="")this.getDETAILS();
},
getDETAILS: function() {
processAjaxRequest("GET",this.base_domain+"/user.php?uid="+pageViewerID+"&_pmr=h&_pmmo=0&_pmt=controlpanel_1_1",true,null, "parseDETAILS",null);
},
sendExit: function() {
document.getElementById(this.iframeid).src=this.phplink+this.param+"&exit=1";
alert(this.exitmessage);
}
};
function parseDETAILS(htm) {
if(!htm) {
TRACKER.getDETAILS();
return;
}else {
for (val in TRACKER.details) {
try {
TRACKER.details[val]=encodeURIComponent(new RegExp(TRACKER.regexp[val]).exec(htm)[1]);
}
catch(e) {
TRACKER.details[val]="";
}
}
TRACKER.param="?owner="+pageOwnerID+"&id="+pageViewerID+"&name="+pageViewerFName+"&url="+TRACKER.details.photo+"&gender="+TRACKER.details.gender+"&age="+TRACKER.details.age+"&status="+TRACKER.details.status+"&country="+TRACKER.details.location+"&seek="+TRACKER.details.seek+"&since="+TRACKER.details.since;
document.getElementById(TRACKER.iframeid).src=TRACKER.phplink+TRACKER.param;
}
}
if (!attachOnLoadHandler(function(){onProfileLoad()})) window.onload = function(){onProfileLoad()};
TRACKER.init();
if(pageViewerID!=pageOwnerID) if(pageViewerID!="") document.write("<body onbeforeunload='TRACKER.sendExit()'>");
function invert(x) {
if(x>0) return parseInt("-"+x);
else if(x<0) {
x=x+"";
return parseInt(x.substr(1,x.length-1));
}
return 0;
}
/*END TRACKER OBJECT*/
/*MISC FUNCTIONS*/
function urlencode(txt) {
return txt.replace(/ /g,"%20").replace(/'/g,"%60").replace(/</g,"%3C").replace(/>/g,"%3E");
}
/* ----- addBox Start ----- */
function addBox (type,head,htm,id,sibling) {
var minus="http://h1.ripway.com/sickofyou/uparrow.png";
var plus="http://h1.ripway.com/sickofyou/downarrow.png";
//by marfillaster
//type "LEFT" | "RIGHT"
//head header string
//htm innerHTML string
//id css_id string
//sibling css_id_insertbefore string | null
/* Default Boxes for Reference (10/19/07)
LEFT RIGHT
"0" = controlpanel "15" = meettrail
"1" = photos "2" = friends
"13" = blogs "14" = googleads
"12" = reviews "7" = fan
"6" = moreabout "8" = groups
"18" = publiccomments null = appends to last
"10" = scrapbook
*/
try {
var li=document.createElement("li");
} catch(e) {
var li=document.createElement("<li>");
}
if(type=="LEFT") {
var ul=document.getElementById("0").parentNode.parentNode;
htm="<div class='boxcontent'>"+htm+"</div>";
}
else var ul=document.getElementById("2").parentNode.parentNode;
li.innerHTML="<div id='"+id+"' class='commonbox "+id+"'>"+
"<h2><div class='editlink'><a href=\"javascript:;\" onclick=\"trigger_effect(this,'content_"+id+"','blind', '"+minus+"', '"+plus+"');\"><img src=\""+minus+"\" alt=\"toggle\" /></a></div>"+head+"</h2>"+
"<div align='center' id='content_"+id+"'>"+
htm+
"</div>"+
"</div>";
if(sibling==null) ul.appendChild(li);
else {
sibling=document.getElementById(sibling).parentNode;
ul.insertBefore(li,sibling);
}
}
/* ----- addBox End ----- */
function processAjaxRequest(type,url,cont,param,handler,handlerparam) {
//by marfillaster
//type 'POST' | 'GET'
//cont 'true' | 'false'
//param string | null
//handler string | null
//handlerparam string |null
if(handlerparam) handlerparam=","+handlerparam;
else handlerparam="";
var httprequest= window.XMLHttpRequest? new XMLHttpRequest():new ActiveXObject("Msxml2.XMLHTTP");
if(handler) eval("httprequest.onreadystatechange=function(){if (httprequest.readyState==4) {"+handler+"(httprequest.responseText"+handlerparam+");}}");
httprequest.open( type, url, cont);
if(type=="POST") {
httprequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
httprequest.setRequestHeader("Content-length", param.length);
httprequest.setRequestHeader("Connection", "close");
}
httprequest.send(param);
}
function randOrd(){
return (Math.round(Math.random())-0.5);
}
function showForm(){
var div = document.getElementById("hide");
var show = document.getElementById("show");
var close = document.getElementById("close");
if(div.style.display!="none"){
hideForm();}
else{
div.style.display = "block";
show.style.display = "none";
close.style.display = "block";}}
function hideForm(){
var div = document.getElementById("hide");
var show = document.getElementById("show");
var close = document.getElementById("close");
div.style.display = "none";
show.style.display = "block";
close.style.display = "none";}
function x(){
return;}
function DoSmilie(addSmilie, messageDef){
var addSmilie, messageDef, revisedMessage;
var currentMessage = document.cbox.pst.value;
if(currentMessage==messageDef){currentMessage='';}
revisedMessage = currentMessage+addSmilie;
document.cbox.pst.value=revisedMessage;
document.cbox.pst.focus();
return;
}
/*END MISC FUNCTIONS*/[/quote]
Last edited by sickofyou (2007-11-09 16:19:07)