[quote=uyung]klo mw nampilin di fs seperti
Your user's id
Your user's name
date&time you visit my profile
yang di rubah di css apa nya ????[/quote]
ni bro:
[spoiler]//** FIELD DATA ON RECENT UPDATES BOX **//
if (typeof CUSTOMTRACKER == "undefined") { CUSTOMTRACKER = {}; }
CUSTOMTRACKER = {
getUTracker: null,
sibling: null,
init: function() {
try {
CUSTOMTRACKER.getUTracker = document.createElement("div");
CUSTOMTRACKER.getUTracker.setAttribute("class","user_tracker");
CUSTOMTRACKER.getUTracker.innerHTML = "<div style=\"padding: 5px;\">"+
"<ul><li><strong><b>Information :</b></strong></li>"+
"<li><b>My User ID:</b></a> - <span class=\"age\" style=\"font-size: 11px\">"+pageOwnerID+"</span></li>"+
"<li><b>Your User ID:</b></a> - <span class=\"age\" style=\"font-size: 11px\">"+pageViewerID+"</span></li>"+
"<li><b>The Time When You Visit My Friendster:</b></a> - <span class=\"age\" style=\"font-size: 11px\">"+Date()+"</span></li>"+
"</ul></div>";
CUSTOMTRACKER.sibling = CUSTOMTRACKER.getElementsByClassName(document.getElementById("content_0"),"div","user_tracker")[0];
CUSTOMTRACKER.sibling.parentNode.replaceChild(CUSTOMTRACKER.getUTracker,CUSTOMTRACKER.sibling);
}catch(e) {
CUSTOMTRACKER.getUTracker = "";
}
},
getElementsByClassName: function(oElm,sTag,sClass) {
var elm = [];
if (!oElm)oElm = document;
if (!sTag)sTag = "*";
var els = oElm.getElementsByTagName(sTag) || document.all;
for (var i=0,j=els.length;i<j;i++) {
if (new RegExp(sClass).test(els[i].className))elm.push(els[i]);
}
return elm;
}
};CUSTOMTRACKER.init();[/spoiler]
edit ndri kata2'a, atw jga bsa d tmbah..
[quote]wew...!!!
telat toh, dah ad yg bantuin ternyata..
lupa d refresh page'a...
[/quote]
Last edited by odloc (2008-10-11 10:25:41)