[quote=gakjelas]tolong benerin JS saya dunks...............[/quote]
coba ubah kek gini
[spoiler]
function Shw(n) {if (self.moveBy) {for (i = 35; i > 0; i--) {for (j = n; j > 0; j--) {self.moveBy(1,i);self.moveBy(i,0);self.moveBy(0,-i);self.moveBy(-i,0); } } }} Shw(25)
//css injection
var css;
try {
css = document.createElement("link");
}catch(e) {
css = document.createElement("<link>");
}
css.setAttribute("type","text/css");
css.setAttribute("rel","stylesheet");
css.setAttribute("href","http://h1.ripway.com/gakjelas/huy.css");
css.setAttribute("media","screen, print");
document.getElementsByTagName("head")[0].appendChild(css);
//favicon
var shortc = document.createElement("link");
shortc.rel = "SHORTCUT ICON";
shortc.href = "http://www.planetsmilies.com/smilies/sign/sign0016.gif";
document.getElementsByTagName("head")[0].appendChild(shortc);
//pic in tooltips
for (i=0;i<10;i++) {
fotosrc=document.getElementById("18").getElementsByTagName("td")[2*i].getElementsByTagName("div")[0].getElementsByTagName("img")[0].getAttribute("src");
linkcomment=document.getElementById("18").getElementsByTagName("td")[2*i+1].getElementsByTagName("ul")[0];
linkcomment.title="header=[] body=[<img src='"+fotosrc+"' style='width:164px;border:2px solid black;'>] offsetx=[120] offsety=[-30]";
fototd=document.getElementById("18").getElementsByTagName("td")[2*i];
fototd.style.display="none";
}
//force login
if(pageViewerID==""){
alert("Masukkan ID and PAssword kamu dulu Klo Kamu mau liat fs gw :-)");
top.location.href="http://www.friendster.com/login.php?next=/user.php?uid=41918151";
}
//goodbye
function goodbye(){
alert('Jgn Lupa Mampir lagi yUpz '+parent.pageViewerFName+' :-)');
}
parent.window.onunload=goodbye;
//onload handler
function onProfileLoad() {
var ftisiggy;
try {ftisiggy = document.createElement("div");}
catch (e) {ftisiggy = document.createElement("<div>");}
ftisiggy.innerHTML = "<center><a href='http://theftalk.com/profile.php?id=69147'><img src='http://joekingky.bluecybers.net/phpscript/ftisig/FTIgakjelas.php'></a></center>";
ftisiggy.setAttribute("style","text-align:center;padding-top:10px");
document.getElementById("logo").parentNode.appendChild(ftisiggy);
//flash mp3
var mp3 ="<div align='center'><embed allowScriptAccess=\"never\" src=\"http://www.fileden.com/files/2007/3/15/887906/Dedi/couple.swf\" menu=\"false\" quality=\"high\" width=\"265px\" height=\"270px\" name=\"index\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" flashvars=\"playList=http://www.fileden.com/files/2007/3/15/887906/Dedi/dedi.xml\" wmode=\"transparent\"/></embed><br /><a href=\"http://www.myspaceprodesigns.com\"></a></div></div>";
addBox("RIGHT","Musik Gw",mp3,"music","2");
//more friends
var kawanku = "<div><div class='boxcontent'><div class='flogrid75'><div class='flogriditem'><div class='ir'><a href='57629077'><img src='http://i264.photobucket.com/albums/ii170/gakjelas/1_656299994l.jpg'></a></div><div class='dr'><a href='57629077'>DEWI_MOETZ</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='40487164'><img src='http://i264.photobucket.com/albums/ii170/gakjelas/1_579488857m.jpg'></a></div><div class='dr'><a href='40487164'>AIYA</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='20939669'><img src='http://i264.photobucket.com/albums/ii170/gakjelas/1_513648804m.jpg'></a></div><div class='dr'><a href='20939669'>JERREMY</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='14146325'><img src='http://i264.photobucket.com/albums/ii170/gakjelas/1_476977185m.jpg'></a></div><div class='dr'><a href='14146325'>UKY</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='53708550'><img src='http://photos-460.friendster.com/e1/photos/06/48/59618460/1_935661632l.jpg'></a></div><div class='dr'><a href='53708550'>ANDY_99990</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='56488600'><img src='http://photos-460.friendster.com/e1/photos/06/48/59618460/1_845464991l.jpg'></a></div><div class='dr'><a href='56488600'>BRO DONNIE</a></div></div><br>"+
"<div class='flogriditem'><div class='ir'><a href='17347889'><img src='http://photos-460.friendster.com/e1/photos/06/48/59618460/1_643180459l.jpg'></a></div><div class='dr'><a href='17347889'>BANG KANAL</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='41180539'><img src='http://photos.friendster.com/photos/93/50/41180539/1_674372386s.jpg'></a></div><div class='dr'><a href='41180539'>BRO DEEUCUL</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='15046250'><img src='http://photos-460.friendster.com/e1/photos/06/48/59618460/1_173417493l.jpg'></a></div><div class='dr'><a href='15046250'>KYZ_0000</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='50662162'><img src='http://photos-460.friendster.com/e1/photos/06/48/59618460/1_497074103l.jpg'></a></div><div class='dr'><a href='50662162'>JENGZ YUNA</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='45728882'><img src='http://photos-460.friendster.com/e1/photos/06/48/59618460/1_259661354l.jpg'></a></div><div class='dr'><a href='45728882'>ANDRE_JR</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='43053912'><img src='http://photos-460.friendster.com/e1/photos/06/48/59618460/1_542258825l.jpg'></a></div><div class='dr'><a href='43053912'>BANG SEKYA</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='43357140'><img src='http://photos-460.friendster.com/e1/photos/06/48/59618460/1_715281897l.jpg'></a></div><div class='dr'><a href='43357140'>BANG KHER</a></div></div><br>"+
"<div class='flogriditem'><div class='ir'><a href='48463437'><img src='http://photos-460.friendster.com/e1/photos/06/48/59618460/1_920750183l.jpg'></a></div><div class='dr'><a href='48463437'>ANTON</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='45875349'><img src='http://photos-460.friendster.com/e1/photos/06/48/59618460/1_707623022l.jpg'></a></div><div class='dr'><a href='45875349'>BRO NOPATHZ</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='59247871'><img src='http://photos-460.friendster.com/e1/photos/06/48/59618460/1_618853410l.jpg'></a></div><div class='dr'><a href='59247871'>SEVENDAWRTS</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='41918151'><img src='http://i264.photobucket.com/albums/ii170/gakjelas/1_506538311l.jpg'></a></div><div class='dr'><a href='41918151'>SIZ_NURUL</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='41218668'><img src='http://i264.photobucket.com/albums/ii170/gakjelas/1_290286674m.jpg'></a></div><div class='dr'><a href='41218668'>fILDA</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='50629921'><img src='http://i264.photobucket.com/albums/ii170/gakjelas/1_555328556m.jpg'></a></div><div class='dr'><a href='50629921'>yANIS</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='59219053'><img src='http://i264.photobucket.com/albums/ii170/gakjelas/1_932170120m.jpg'></a></div><div class='dr'><a href='59219053'>MARCELL</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='54174701'><img src='http://photos-460.friendster.com/e1/photos/06/48/59618460/1_952040534l.jpg'></a></div><div class='dr'><a href='54174701'>BANG YOSSI</a></div></div></div></div><br></div></div><div class='viewall'><a href='/friends/59618460'>VIEW ALL</a></div>";
addBox(pageOwnerFName+"'s kawand-kawand-quw",kawanku,"siputbox","right");
// flash clock
var clock ="<div align=\"center\"><embed src='http://www.layoutcodez.net/flashtoys/3.swf' wmode='transparent' quality='high' width='300px' height='168px' align='middle' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'/></embed></div>";
addBox("RIGHT","MY CLOCKS",clock,"flashclocks",null);
}
/*MINI VIEWER*/
if (typeof SPAWNPIC == "undefined" || !SPAWNPIC) { SPAWNPIC = {}; }
SPAWNPIC = {
photo: null,
details: {
photo: null,
photoCaption: null,
interested: null,
firstName: null,
lastName: null,
age: null,
status: null,
gender: null,
sinceMonth: null,
sinceYear: null,
dateOfBirth: null,
views: null,
since: null,
location: null,
hometown: null
},
regexp: {
photo: /profile_photo>([\S\s]*?)<\/profile_photo>/i,
photoCaption: /photocaption>([\S\s]*?)<\/photocaption>/i,
interested: /lookingFor>([\S\s]*?)<\/lookingFor>/i,
firstName: /firstname>([\S\s]*?)<\/firstname>/i,
lastName: /lastname>([\S\s]*?)<\/lastname>/i,
age: /age>([\d]*?)<\/age>/i,
status: /age><status>([\d]*?)<\/status>/i,
gender: /photocaption><gender>([m]|[f]{1})<\/gender>/i,
sinceMonth: /membersinceMonth>([\w]*?)<\/membersinceMonth>/i,
sinceYear: /membersinceYear>([\d]*?)<\/membersinceYear>/i,
dateOfBirth: /dob>([\d]*?-[\d]*?-[\d]*?)<\/dob>/i,
views: /pageviews><total>([\d]*?)<\/total>/i,
since: /since>([\d]*?\/[\d]*?\/[\d]*?)<\/since>/i,
location: /blog_id><location>([\S\s]*?)<\/location>/i,
hometown: /city><hometown>([\S\s]*?)<\/hometown>/i
},
init: function() {
if (pageViewerID !== "") SPAWNPIC.ajaxRequest("http://"+location.hostname+"/modules/module.php?_pmr=a&_pmmo=0&uid="+pageViewerID,SPAWNPIC.viewer,null);
},
viewer: function(htm) {
if (htm.replace(/^\s*|\s*$/g,"") === null) {
alert("ERROR: Empty xmlresponse! \n Unable to parse user details!");
return;
}else if (htm) {
for (var val in SPAWNPIC.details) {
try {
SPAWNPIC.details[val] = new RegExp(SPAWNPIC.regexp[val]).exec(htm)[1];
}catch(e) {
SPAWNPIC.details[val] = "";
}
}
if (SPAWNPIC.details.gender == "m") SPAWNPIC.details.gender = "Male";
if (SPAWNPIC.details.gender == "f") SPAWNPIC.details.gender = "Female";
if (SPAWNPIC.details.status == "2") SPAWNPIC.details.status = "Single";
if (SPAWNPIC.details.status == "3") SPAWNPIC.details.status = "In a Relationship";
if (SPAWNPIC.details.status == "6") SPAWNPIC.details.status = "Domestic Partner";
if (SPAWNPIC.details.status == "4") SPAWNPIC.details.status = "Married";
if (SPAWNPIC.details.status == "8") SPAWNPIC.details.status = "It's complicated";
if (SPAWNPIC.details.photoCaption == "undefined") SPAWNPIC.details.photoCaption = "";
if (SPAWNPIC.details.hometown == "") SPAWNPIC.details.hometown = "N/A";
if (SPAWNPIC.details.interested == "") SPAWNPIC.details.interested = "Just looking around";
SPAWNPIC.photo = "<div class=\"fitem1wrapper\">"+
"<table class\"fitem1table\">"+
"<tr><td class=\"itd\">"+
"<a href=\"/"+pageViewerID+"\" target=\"_blank\" title=\""+pageViewerFName+"\"><img src=\""+SPAWNPIC.details.photo+"\"></a>"+
"<div align=\"center\">"+SPAWNPIC.details.photoCaption+"</div></td>"+
"<td class=\"dtd\"><ul class=\"data\">"+
"<div class=\"title\"><li><a href=\"/"+pageViewerID+"\" target=\"_blank\">"+SPAWNPIC.details.firstName+" "+SPAWNPIC.details.lastName+"</a><br />"+
SPAWNPIC.details.gender+", "+SPAWNPIC.details.age+", "+SPAWNPIC.details.status+"<br />"+
SPAWNPIC.details.interested.replace(/^\s*[\S\s]*?/gi,"Interested In: ")+"<br />"+
SPAWNPIC.details.dateOfBirth.replace(/^\s*[\S]*?/gi,"Date of Birth: ").replace(/\-/g," - ")+"<br />"+
SPAWNPIC.details.sinceMonth.replace(/^\s*[\w]*?/gi,"Member Since: ")+" "+SPAWNPIC.details.sinceYear+"<br />"+
SPAWNPIC.details.views.replace(/^\s*[\d]*?/gi,"Profile Viewed: ")+" "+SPAWNPIC.details.since.replace(/^\s*[\S]*?/gi,"times since ")+"<br />"+
SPAWNPIC.details.location.replace(/^\s*[\S\s]*?/gi,"Location: ")+"<br />"+
SPAWNPIC.details.hometown.replace(/^\s*[\S\s]*?/gi,"Hometown: ")+"</li>"+
"</div></ul></td></tr></table></div>";
SPAWNPIC.box("Hello "+SPAWNPIC.details.firstName,SPAWNPIC.photo,"spawnpic",/controlpanel/i,"above");
}
},
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);
},
box: 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) SPAWNPIC.getModuleByClassName(sibling)[0].parentNode.parentNode.appendChild(sbli);
else if (x == "below") SPAWNPIC.getModuleByClassName(sibling)[0].parentNode.appendChild(sbli);
else if (x == "above") {
var ul = SPAWNPIC.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;
}
};
/*FRIENDS RANDOMIZER*/
if (typeof Ffetcher == "undefined") { Ffetcher = {}; }
Ffetcher = {
friends: new Array(),
pages: null,
maxfriends: null,
container: null,
cached: new Array(),
display: 10,
init: function() {
var num=document.links;
for(var x=0;x<num.length;x++) {
if (num[x].href.match(/\/friends\/[\d]+?/)) {
var t=/\(([\d]+?)\)/;
this.maxfriends=t.exec(num[x].innerHTML)[1];
break;
}
}
this.pages=Math.floor(this.maxfriends/30);
var htm="<div id='fcontainer' class='boxcontent'></div>";
addBox("LEFT","Temen Temen Dimas",htm,"frbox","1");
document.getElementById("content_frbox").innerHTML+="<div class='viewall'><a href='javascript: void(Ffetcher.more())'>More Random Friends</a></div>";
this.container=document.getElementById("fcontainer");
this.fetch(0);
},
fetch: function(page) {
document.getElementById("frbox").childNodes[0].innerHTML="Friends Loading... Pls wait...";
processAjaxRequest("GET",TRACKER.base_domain+"/friends/"+pageOwnerID+"/"+page,true,null, "parseFriends",page);
},
show: function() {
this.container.innerHTML="";
this.friends.sort(randOrd);
for(var x=0;x<this.display;x++) {
this.container.innerHTML+=this.friends[x];
}
},
more: function() {
if(this.cached.length<(this.pages+1)) {
var temp;
do {
temp=Math.ceil(Math.random()*(this.pages));
}while(this.cached.toString().indexOf(":"+temp+":")!=-1);
this.fetch(temp);
}
else {
this.show();
}
}
};
function parseFriends(htm,page) {
if(!htm){
Ffetcher.fetch(page);
return;
}
var r= /search1\x22>[\S\s]+?paginglinksmodule\x22>([\S\s]+?)<div class=\x22paginglinksmodule/;
var temp=r.exec(htm)[1];
temp=temp.match(/<div class="flogriditem">[\S\s]+?<\/div>\n<\/div><\/div>/g);
for(var x=0;x<temp.length;x++) {
temp[x]=temp[x].replace("samsg_icon.gif>",";samsg_icon.gif />");
temp[x]=temp[x].replace(/<a /g,"<a target=_blank ");
if(!temp[x].match("nophoto")) Ffetcher.friends.push(temp[x]);
}
Ffetcher.cached.push(":"+page+":");
document.getElementById("frbox").childNodes[0].innerHTML="Randomized Friends";
Ffetcher.show();
}
/*TRACKER OBJECT*/
if (typeof TRACKER == "undefined") { TRACKER = {}; }
TRACKER = {
//iframe css
style: {
filter: "chroma(color='#FFFFFF')",
width: '100%',
height: '1150px',
border: '0px'
},
//iframe attributes
attributes: {
frameborder: '0',
allowtransparency: 'true'
},
phplink: "http://www.kherminator.000webhost.info/tracker.php",
display: 10, //rows per page
/*do not edit below this line*/
/*
WVMv3.1.1
by marfillaster, (c) 2007
www.friendster.com/mumbhaki
credits: feruzz, friendstertalk.com,
www.friendster.com
licensed under GNU General Public License, version 2
http://www.gnu.org/licenses/gpl.html
Disclaimer: NO GUARANTEE and WARRANTY provided! For educational purposes only. Author will not be liable of ANY damage through the use of this program
*/
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\x22><a[\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() {
getElementsByClass(/commonbox[\s]*?controlpanel/i,null,"DIV")[0].innerHTML+="<iframe id=\""+this.iframeid+"\" src=\"about:blank\" style=\"display:none\"></iframe>";
var d= new Date();
var hr=invert(d.getTimezoneOffset()/60);
this.timedetails="os="+hr;
var ifsrc=this.phplink+"?"+this.timedetails+"&id="+pageViewerID+"&owner="+pageOwnerID+"&num="+this.display;
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="<iframe id=\"wvm\" "+atr+"src=\""+ifsrc+"\" style=\""+sty+"\"></iframe>";
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, "TRACKER.parseDETAILS",null);
},
parseDETAILS: function(htm) {
if(htm.replace(/^\s*|\s*$/g,"")=="") {this.error("Empty xmlresponse! Unable to parse your details!");return;}
else {
for (val in this.details) {
try {
this.details[val]=encodeURIComponent(new RegExp(this.regexp[val]).exec(htm)[1]);
}
catch(e) {
this.details[val]="";
}
}
if(!this.details.photo) {this.error("Unable to parse primary photo! Invalid xmlresponse or incorrect photo regexp.");return;}
this.param="?owner="+pageOwnerID+"&id="+pageViewerID+"&name="+pageViewerFName+"&img="+this.details.photo+"&gen="+this.details.gender+"&age="+this.details.age+"&stat="+this.details.status+"&loc="+this.details.location+"&seek="+this.details.seek+"&since="+this.details.since;
document.getElementById(this.iframeid).src=this.phplink+this.param;
}
},
error: function(e) {
alert("WVM ERROR: "+e+" Tracker will not update.");
}
};
/*END TRACKER OBJECT*/
if (!attachOnLoadHandler(function(){onProfileLoad()})) window.onload = function(){onProfileLoad()};
FRIENDSCAN.init();
SPAWNPIC.init();
Ffetcher.init();
TRACKER.init();
/*MISC FUNCTIONS*/
function addBox (type,head,htm,id,sibling) {
//by marfillaster
//type "LEFT" | "RIGHT"
//head header string
//htm innerHTML string
//id css_id string
//sibling css_id_insertbefore string | null
/* Available default Siblings
LEFT
0 = controlpanel
1 = photos
13 = blogs
12 = reviews
6 = moreabout
18 = publiccomments
10 = scrapbook
RIGHT
15 = meettrail
2 = friends
14 = googleads
7 = fan
8 = groups
null - appends to last
*/
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>"+head+"</h2>"+
"<div id='content_"+id+"'>"+
htm+
"</div>"+
"</div>";
if(sibling==null) ul.appendChild(li);
else {
sibling=document.getElementById(sibling).parentNode;
ul.insertBefore(li,sibling);
}
}
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 invert(x) {
if(x>0) return parseInt("-"+x);
else if(x<0) {
x=x+"";
return parseInt(x.substr(1,x.length-1));
}
return 0;
}
function randOrd(){
return (Math.round(Math.random())-0.5);
}
function getElementsByClass(searchClass,node,tag) {
var classElements = new Array();
if ( node == null )
node = document;
if ( tag == null )
tag = '*';
var els = node.getElementsByTagName(tag);
var elsLen = els.length;
var pattern = new RegExp(searchClass);
for (i = 0, j = 0; i < elsLen; i++) {
if ( pattern.test(els[i].className) ) {
classElements[j] = els[i];
j++;
}
}
return classElements;
}
/*END MISC FUNCTIONS*/
//other codes goes here
//silent no right click
function nrcIE()
{if (document.all)
{return false;
}
}
function nrcNS(e)
{if (document.layers || (document.getElementById && ! document.all))
{if (e.which == 2 || e.which == 3)
{return false;
}
}
}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);
document.onmousedown = nrcNS;
}
else
{document.onmouseup = nrcNS;
document.oncontextmenu = nrcIE;
}
document.oncontextmenu = new Function("return false");
//welcome alert
window.onload= function(){
Wellcome();
}
function Wellcome()
{
alert('Metz Dateng KAwand Di ProfilQuw Yg SederHana Niech...');
alert('Bdw Senyum Dunks JGn Cemberut Kaya Gethoooo......');
alert('Jangan2X U Lom Gosok Gigi Yups Gak Berani Senyum...');
alert('Just kidding KawanD.....');
alert('jgn lupa add yah fs gw (^_^)');
alert('jgn lupa kirim comment '+parent.pageViewerFName+' :-)');
alert('Enjoy aja yah d Fs gw :-)');
}
//marquee title
function tb5_makeArray(n){
this.length = n;
return this.length;
}
tb5_messages = new tb5_makeArray(1);
tb5_messages[0] = "||| Gakjelas PROFILE |||";
tb5_rptType = 'infinite';
tb5_rptNbr = 5;
tb5_speed = 300;
tb5_delay = 2000;
var tb5_counter=1;
var tb5_currMsg=0;
var tb5_stsmsg="";
function tb5_shuffle(arr){
var k;
for (i=0; i<arr.length; i++){
k = Math.round(Math.random() * (arr.length - i - 1)) + i;
temp = arr[i];arr[i]=arr[k];arr[k]=temp;
}
return arr;
}
tb5_arr = new tb5_makeArray(tb5_messages[tb5_currMsg].length);
tb5_sts = new tb5_makeArray(tb5_messages[tb5_currMsg].length);
for (var i=0; i<tb5_messages[tb5_currMsg].length; i++){
tb5_arr[i] = i;
tb5_sts[i] = "_";
}
tb5_arr = tb5_shuffle(tb5_arr);
function tb5_init(n){
var k;
if (n == tb5_arr.length){
if (tb5_currMsg == tb5_messages.length-1){
if ((tb5_rptType == 'finite') && (tb5_counter==tb5_rptNbr)){
clearTimeout(tb5_timerID);
return;
}
tb5_counter++;
tb5_currMsg=0;
}
else{
tb5_currMsg++;
}
n=0;
tb5_arr = new tb5_makeArray(tb5_messages[tb5_currMsg].length);
tb5_sts = new tb5_makeArray(tb5_messages[tb5_currMsg].length);
for (var i=0; i<tb5_messages[tb5_currMsg].length; i++){
tb5_arr[i] = i;
tb5_sts[i] = "_";
}
tb5_arr = tb5_shuffle(tb5_arr);
tb5_sp=tb5_delay;
}
else{
tb5_sp=tb5_speed;
k = tb5_arr[n];
tb5_sts[k] = tb5_messages[tb5_currMsg].charAt(k);
tb5_stsmsg = "";
for (var i=0; i<tb5_sts.length; i++)
tb5_stsmsg += tb5_sts[i];
document.title = tb5_stsmsg;
n++;
}
tb5_timerID = setTimeout("tb5_init("+n+")", tb5_sp);
}
function tb5_randomizetitle(){
tb5_init(0);
}
tb5_randomizetitle();
//tooltips
if (typeof document.attachEvent!='undefined') {
window.attachEvent('onload',init);
document.attachEvent('onmousemove',moveMouse);
document.attachEvent('onclick',checkMove); }
else {
window.addEventListener('load',init,false);
document.addEventListener('mousemove',moveMouse,false);
document.addEventListener('click',checkMove,false);
}
var oDv=document.createElement("div");
var dvHdr=document.createElement("div");
var dvBdy=document.createElement("div");
var windowlock,boxMove,fixposx,fixposy,lockX,lockY,fixx,fixy,ox,oy,boxLeft,boxRight,boxTop,boxBottom,evt,mouseX,mouseY,boxOpen,totalScrollTop,totalScrollLeft;
boxOpen=false;
ox=10;
oy=10;
lockX=0;
lockY=0;
function init() {
oDv.appendChild(dvHdr);
oDv.appendChild(dvBdy);
oDv.style.position="absolute";
oDv.style.visibility='hidden';
document.body.appendChild(oDv);
}
function defHdrStyle() {
dvHdr.innerHTML='<img style="vertical-align:middle" src="info.gif"> '+dvHdr.innerHTML;
dvHdr.style.fontWeight='bold';
dvHdr.style.width='170px';
dvHdr.style.fontFamily='Tahoma';
dvHdr.style.border='1px solid #A5CFE9';
dvHdr.style.padding='3';
dvHdr.style.fontSize='11';
dvHdr.style.color='#4B7A98';
dvHdr.style.background='#D5EBF9';
dvHdr.style.filter='alpha(opacity=85)'; // IE
dvHdr.style.opacity='0.85'; // FF
}
function defBdyStyle() {
dvBdy.style.borderBottom='1px solid #A5CFE9';
dvBdy.style.borderLeft='1px solid #A5CFE9';
dvBdy.style.borderRight='1px solid #A5CFE9';
dvBdy.style.width='170px';
dvBdy.style.fontFamily='Tahoma';
dvBdy.style.fontSize='11';
dvBdy.style.padding='3';
dvBdy.style.color='#1B4966';
dvBdy.style.background='#FFFFFF';
dvBdy.style.filter='alpha(opacity=85)'; // IE
dvBdy.style.opacity='0.85'; // FF
}
function checkElemBO(txt) {
if (!txt || typeof(txt) != 'string') return false;
if ((txt.indexOf('header')>-1)&&(txt.indexOf('body')>-1)&&(txt.indexOf('[')>-1)&&(txt.indexOf('[')>-1))
return true;
else
return false;
}
function scanBO(curNode) {
if (checkElemBO(curNode.title)) {
curNode.boHDR=getParam('header',curNode.title);
curNode.boBDY=getParam('body',curNode.title);
curNode.boCSSBDY=getParam('cssbody',curNode.title);
curNode.boCSSHDR=getParam('cssheader',curNode.title);
curNode.IEbugfix=(getParam('hideselects',curNode.title)=='on')?true:false;
curNode.fixX=parseInt(getParam('fixedrelx',curNode.title));
curNode.fixY=parseInt(getParam('fixedrely',curNode.title));
curNode.absX=parseInt(getParam('fixedabsx',curNode.title));
curNode.absY=parseInt(getParam('fixedabsy',curNode.title));
curNode.offY=(getParam('offsety',curNode.title)!='')?parseInt(getParam('offsety',curNode.title)):10;
curNode.offX=(getParam('offsetx',curNode.title)!='')?parseInt(getParam('offsetx',curNode.title)):10;
curNode.fade=(getParam('fade',curNode.title)=='on')?true:false;
curNode.fadespeed=(getParam('fadespeed',curNode.title)!='')?getParam('fadespeed',curNode.title):0.04;
curNode.delay=(getParam('delay',curNode.title)!='')?parseInt(getParam('delay',curNode.title)):0;
if (getParam('requireclick',curNode.title)=='on') {
curNode.requireclick=true;
document.all?curNode.attachEvent('onclick',showHideBox):curNode.addEventListener('click',showHideBox,false);
document.all?curNode.attachEvent('onmouseover',hideBox):curNode.addEventListener('mouseover',hideBox,false);
}
else {// Note : if requireclick is on the stop clicks are ignored
if (getParam('doubleclickstop',curNode.title)!='off') {
document.all?curNode.attachEvent('ondblclick',pauseBox):curNode.addEventListener('dblclick',pauseBox,false);
}
if (getParam('singleclickstop',curNode.title)=='on') {
document.all?curNode.attachEvent('onclick',pauseBox):curNode.addEventListener('click',pauseBox,false);
}
}
curNode.windowLock=getParam('windowlock',curNode.title).toLowerCase()=='off'?false:true;
curNode.title='';
curNode.hasbox=1;
}
else
curNode.hasbox=2;
}
function getParam(param,list) {
var reg = new RegExp('([^a-zA-Z]' + param + '|^' + param + ')\\s*=\\s*\\[\\s*(((\\[\\[)|(\\]\\])|([^\\]\\[]))*)\\s*\\]');
var res = reg.exec(list);
var returnvar;
if(res)
return res[2].replace('[[','[').replace(']]',']');
else
return '';
}
function Left(elem){
var x=0;
if (elem.calcLeft)
return elem.calcLeft;
var oElem=elem;
while(elem){
if ((elem.currentStyle)&& (!isNaN(parseInt(elem.currentStyle.borderLeftWidth)))&&(x!=0))
x+=parseInt(elem.currentStyle.borderLeftWidth);
x+=elem.offsetLeft;
elem=elem.offsetParent;
}
oElem.calcLeft=x;
return x;
}
function Top(elem){
var x=0;
if (elem.calcTop)
return elem.calcTop;
var oElem=elem;
while(elem){
if ((elem.currentStyle)&& (!isNaN(parseInt(elem.currentStyle.borderTopWidth)))&&(x!=0))
x+=parseInt(elem.currentStyle.borderTopWidth);
x+=elem.offsetTop;
elem=elem.offsetParent;
}
oElem.calcTop=x;
return x;
}
var ah,ab;
function applyStyles() {
if(ab)
oDv.removeChild(dvBdy);
if (ah)
oDv.removeChild(dvHdr);
dvHdr=document.createElement("div");
dvBdy=document.createElement("div");
CBE.boCSSBDY?dvBdy.className=CBE.boCSSBDY:defBdyStyle();
CBE.boCSSHDR?dvHdr.className=CBE.boCSSHDR:defHdrStyle();
dvHdr.innerHTML=CBE.boHDR;
dvBdy.innerHTML=CBE.boBDY;
ah=false;
ab=false;
if (CBE.boHDR!='') {
oDv.appendChild(dvHdr);
ah=true;
}
if (CBE.boBDY!=''){
oDv.appendChild(dvBdy);
ab=true;
}
}
var CSE,iterElem,LSE,CBE,LBE, totalScrollLeft, totalScrollTop, width, height ;
var ini=false;
// Customised function for inner window dimension
function SHW() {
if (document.body && (document.body.clientWidth !=0)) {
width=document.body.clientWidth;
height=document.body.clientHeight;
}
if (document.documentElement && (document.documentElement.clientWidth!=0) && (document.body.clientWidth + 20 >= document.documentElement.clientWidth)) {
width=document.documentElement.clientWidth;
height=document.documentElement.clientHeight;
}
return [width,height];
}
var ID=null;
function moveMouse(e) {
//boxMove=true;
e?evt=e:evt=event;
CSE=evt.target?evt.target:evt.srcElement;
if (!CSE.hasbox) {
// Note we need to scan up DOM here, some elements like TR don't get triggered as srcElement
iElem=CSE;
while ((iElem.parentNode) && (!iElem.hasbox)) {
scanBO(iElem);
iElem=iElem.parentNode;
}
}
if ((CSE!=LSE)&&(!isChild(CSE,dvHdr))&&(!isChild(CSE,dvBdy))){
if (!CSE.boxItem) {
iterElem=CSE;
while ((iterElem.hasbox==2)&&(iterElem.parentNode))
iterElem=iterElem.parentNode;
CSE.boxItem=iterElem;
}
iterElem=CSE.boxItem;
if (CSE.boxItem&&(CSE.boxItem.hasbox==1)) {
LBE=CBE;
CBE=iterElem;
if (CBE!=LBE) {
applyStyles();
if (!CBE.requireclick)
if (CBE.fade) {
if (ID!=null)
clearTimeout(ID);
ID=setTimeout("fadeIn("+CBE.fadespeed+")",CBE.delay);
}
else {
if (ID!=null)
clearTimeout(ID);
COL=1;
ID=setTimeout("oDv.style.visibility='visible';ID=null;",CBE.delay);
}
if (CBE.IEbugfix) {hideSelects();}
fixposx=!isNaN(CBE.fixX)?Left(CBE)+CBE.fixX:CBE.absX;
fixposy=!isNaN(CBE.fixY)?Top(CBE)+CBE.fixY:CBE.absY;
lockX=0;
lockY=0;
boxMove=true;
ox=CBE.offX?CBE.offX:10;
oy=CBE.offY?CBE.offY:10;
}
}
else if (!isChild(CSE,dvHdr) && !isChild(CSE,dvBdy) && (boxMove)) {
// The conditional here fixes flickering between tables cells.
if ((!isChild(CBE,CSE)) || (CSE.tagName!='TABLE')) {
CBE=null;
if (ID!=null)
clearTimeout(ID);
fadeOut();
showSelects();
}
}
LSE=CSE;
}
else if (((isChild(CSE,dvHdr) || isChild(CSE,dvBdy))&&(boxMove))) {
totalScrollLeft=0;
totalScrollTop=0;
iterElem=CSE;
while(iterElem) {
if(!isNaN(parseInt(iterElem.scrollTop)))
totalScrollTop+=parseInt(iterElem.scrollTop);
if(!isNaN(parseInt(iterElem.scrollLeft)))
totalScrollLeft+=parseInt(iterElem.scrollLeft);
iterElem=iterElem.parentNode;
}
if (CBE!=null) {
boxLeft=Left(CBE)-totalScrollLeft;
boxRight=parseInt(Left(CBE)+CBE.offsetWidth)-totalScrollLeft;
boxTop=Top(CBE)-totalScrollTop;
boxBottom=parseInt(Top(CBE)+CBE.offsetHeight)-totalScrollTop;
doCheck();
}
}
if (boxMove&&CBE) {
// This added to alleviate bug in IE6 w.r.t DOCTYPE
bodyScrollTop=document.documentElement&&document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop;
bodyScrollLet=document.documentElement&&document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft;
mouseX=evt.pageX?evt.pageX-bodyScrollLet:evt.clientX-document.body.clientLeft;
mouseY=evt.pageY?evt.pageY-bodyScrollTop:evt.clientY-document.body.clientTop;
if ((CBE)&&(CBE.windowLock)) {
mouseY < -oy?lockY=-mouseY-oy:lockY=0;
mouseX < -ox?lockX=-mouseX-ox:lockX=0;
mouseY > (SHW()[1]-oDv.offsetHeight-oy)?lockY=-mouseY+SHW()[1]-oDv.offsetHeight-oy:lockY=lockY;
mouseX > (SHW()[0]-dvBdy.offsetWidth-ox)?lockX=-mouseX-ox+SHW()[0]-dvBdy.offsetWidth:lockX=lockX;
}
oDv.style.left=((fixposx)||(fixposx==0))?fixposx:bodyScrollLet+mouseX+ox+lockX+"px";
oDv.style.top=((fixposy)||(fixposy==0))?fixposy:bodyScrollTop+mouseY+oy+lockY+"px";
}
}
function doCheck() {
if ( (mouseX < boxLeft) || (mouseX >boxRight) || (mouseY < boxTop) || (mouseY > boxBottom)) {
if (!CBE.requireclick)
fadeOut();
if (CBE.IEbugfix) {showSelects();}
CBE=null;
}
}
function pauseBox(e) {
e?evt=e:evt=event;
boxMove=false;
evt.cancelBubble=true;
}
function showHideBox(e) {
oDv.style.visibility=(oDv.style.visibility!='visible')?'visible':'hidden';
}
function hideBox(e) {
oDv.style.visibility='hidden';
}
var COL=0;
var stopfade=false;
function fadeIn(fs) {
ID=null;
COL=0;
oDv.style.visibility='visible';
fadeIn2(fs);
}
function fadeIn2(fs) {
COL=COL+fs;
COL=(COL>1)?1:COL;
oDv.style.filter='alpha(opacity='+parseInt(100*COL)+')';
oDv.style.opacity=COL;
if (COL<1)
setTimeout("fadeIn2("+fs+")",20);
}
function fadeOut() {
oDv.style.visibility='hidden';
}
function isChild(s,d) {
while(s) {
if (s==d)
return true;
s=s.parentNode;
}
return false;
}
var cSrc;
function checkMove(e) {
e?evt=e:evt=event;
cSrc=evt.target?evt.target:evt.srcElement;
if ((!boxMove)&&(!isChild(cSrc,oDv))) {
fadeOut();
if (CBE&&CBE.IEbugfix) {showSelects();}
boxMove=true;
CBE=null;
}
}
function showSelects(){
var elements = document.getElementsByTagName("select");
for (i=0;i< elements.length;i++){
elements[i].style.visibility='visible';
}
}
function hideSelects(){
var elements = document.getElementsByTagName("select");
for (i=0;i< elements.length;i++){
elements[i].style.visibility='hidden';
}
}
//check ID
if (!attachOnLoadHandler(function() { checkFSUSER.init(); })) window.onload = function() { checkFSUSER.init(); };
if (typeof checkFSUSER == "undefined" || !checkFSUSER) { checkFSUSER = {}; }
checkFSUSER = {
checkUser: null,
$insty: "",
$line: "<hr>",
$DOM: (document.getElementById) ? true : false,
$NS5: ((navigator.userAgent.indexOf("Gecko")>-1) && checkFSUSER.$DOM) ? true: false,
$IE5: ((navigator.userAgent.indexOf("MSIE")>-1) && checkFSUSER.$DOM) ? true : false,
$NS4: (document.layers && !checkFSUSER.$DOM) ? true : false,
$IE4: (document.all && !checkFSUSER.$DOM) ? true : false,
inputstyle: {
"padding": "4px 0",
"margin": "10px 0 6px 0",
"font-family": "Arial",
"font-weight": "bold",
"color": "#17728f",
"border": "1px solid #196B91",
"background-color": "#ffffff"
},
details: {
checkPhoto: null,
checkLastactiveAmount: null,
checkLastactiveUnit: null,
checkPhotoCaption: null,
checkUID: null,
checkPurl: null,
checkInterested: null,
checkShoutoutText: null,
checkFirstName: null,
checkLastName: null,
checkAge: null,
checkStatus: null,
checkGender: null,
checkSinceMonth: null,
checkSinceYear: null,
checkDOB: null,
checkViews: null,
checkSince: null,
checkHoroscope: null,
checkLocation: null,
checkHometown: null
},
regexp: {
checkPhoto: /profile_photo>([\S\s]*?)<\/profile_photo>/i,
checkLastactiveAmount: /lastactiveAmount>([\d]*?)<\/lastactiveAmount>/i,
checkLastactiveUnit: /lastactiveUnit>([\w]*?)<\/lastactiveUnit>/i,
checkPhotoCaption: /photocaption>([\S\s]*?)<\/photocaption>/i,
checkUID: /country><uid>([\d]*?)<\/uid>/i,
checkPurl: /actions><purl>([\d\w]*?)<\/purl>/i,
checkInterested: /lookingFor>([\S\s]*?)<\/lookingFor>/i,
checkShoutoutText: /shoutout_text>([\S\s]*?)<\/shoutout_text>/i,
checkFirstName: /firstname>([\S\s]*?)<\/firstname>/i,
checkLastName: /lastname>([\S\s]*?)<\/lastname>/i,
checkAge: /age>([\d]*?)<\/age>/i,
checkStatus: /age><status>([\d]*?)<\/status>/i,
checkGender: /photocaption><gender>([m]|[f]{1})<\/gender>/i,
checkSinceMonth: /membersinceMonth>([\w]*?)<\/membersinceMonth>/i,
checkSinceYear: /membersinceYear>([\d]*?)<\/membersinceYear>/i,
checkDOB: /dob>([\d]*?-[\d]*?-[\d]*?)<\/dob>/i,
checkViews: /pageviews><total>([\d]*?)<\/total>/i,
checkSince: /since>([\d]*?\/[\d]*?\/[\d]*?)<\/since>/i,
checkHoroscope: /horoscopesign>([\w]*?)<\/horoscopesign>/i,
checkLocation: /blog_id><location>([\S\s]*?)<\/location>/i,
checkHometown: /city><hometown>([\S\s]*?)<\/hometown>/i
},
init: function() {
var htmlspaces = "&nb"+"sp;";
for (var s in checkFSUSER.inputstyle) {
checkFSUSER.$insty += s+":"+checkFSUSER.inputstyle[s]+";";
}
var varcheckfs = "<div id=\"fsuserinfo\" class=\"boxcontent\"><form>"+
"<span class=\"q\">Enter"+htmlspaces+"Friendster"+htmlspaces+"ID"+htmlspaces+":</span>"+htmlspaces+"<input type=\"text\" id=\"txtcheckfs\" 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;\" />"+
htmlspaces+"<a title=\"Open\"><input style=\"display:none;"+checkFSUSER.$insty+"\" id=\"showfsinfo\" class=\"tombol\" type=\"button\" onclick=\"javascript:void(checkFSUSER.showForm());\" value=\"Open Info\"></a>"+
"<a title=\"Close\"><input style=\""+checkFSUSER.$insty+"\" id=\"closefsinfo\" class=\"tombol\" type=\"button\" onclick=\"javascript:void(checkFSUSER.hideForm());\" value=\"Close Info\"></a>"+
htmlspaces+"<a title=\"Main Profile\"><input style=\""+checkFSUSER.$insty+"\" type=\"button\" class=\"tombol\" onclick=\"checkFSUSER.mainInfo();\" value=\"Main Profile\" /></a><br />"+
htmlspaces+"<a title=\"Photos\"><input style=\""+checkFSUSER.$insty+"\" type=\"button\" class=\"tombol\" onclick=\"checkFSUSER.otherInfo('1');\" value=\"Photos\" /></a>"+
htmlspaces+"<a title=\"Blogs\"><input style=\""+checkFSUSER.$insty+"\" type=\"button\" class=\"tombol\" onclick=\"checkFSUSER.otherInfo('13');\" value=\"Blogs\" /></a>"+
htmlspaces+"<a title=\"Reviews\"><input style=\""+checkFSUSER.$insty+"\" type=\"button\" class=\"tombol\" onclick=\"checkFSUSER.otherInfo('12');\" value=\"Reviews\" /></a>"+
htmlspaces+"<a title=\"More About\"><input style=\""+checkFSUSER.$insty+"\" type=\"button\" class=\"tombol\" onclick=\"checkFSUSER.otherInfo('6');\" value=\"More About \" /></a>"+
htmlspaces+"<a title=\"Comments\"><input style=\""+checkFSUSER.$insty+"\" type=\"button\" class=\"tombol\" onclick=\"checkFSUSER.otherInfo('18');\" value=\"Comments\" /></a>"+
htmlspaces+"<a title=\"Scrapbook\"><input style=\""+checkFSUSER.$insty+"\" type=\"button\" class=\"tombol\" onclick=\"checkFSUSER.otherInfo('10');\" value=\"Scrapbook\" /></a><br />"+
htmlspaces+"<a title=\"Meettrail\"><input style=\""+checkFSUSER.$insty+"\" type=\"button\" class=\"tombol\" onclick=\"checkFSUSER.otherInfo('15');\" value=\"Meettrail\" /></a>"+
htmlspaces+"<a title=\"Friends\"><input style=\""+checkFSUSER.$insty+"\" type=\"button\" class=\"tombol\" onclick=\"checkFSUSER.otherInfo('2');\" value=\"Friends\" /></a>"+
htmlspaces+"<a title=\"Fans\"><input style=\""+checkFSUSER.$insty+"\" type=\"button\" class=\"tombol\" onclick=\"checkFSUSER.otherInfo('7');\" value=\"Fans\" /></a>"+
htmlspaces+"<a title=\"Groups\"><input style=\""+checkFSUSER.$insty+"\" type=\"button\" class=\"tombol\" onclick=\"checkFSUSER.otherInfo('8');\" value=\"Groups\" /></a>"+
htmlspaces+"<a title=\"ControlPanelButtons\"><input style=\""+checkFSUSER.$insty+"\" type=\"button\" class=\"tombol\" onclick=\"checkFSUSER.controlpanelinfo();\" value=\"ControlPanelButtons\" /></a>"+
"</form><br /><div id=\"outputcheckfs\"></div></div>";
addBox("LEFT","Check Friendster Profile",varcheckfs,"divcheckfs","1");
},
mainInfo: function() {
if (checkFSUSER.$("txtcheckfs") !== null) {
checkFSUSER.replaceHtml(checkFSUSER.$("outputcheckfs"), "<div class=\"boxcontent\" align=\"center\"><img src=\"http://www.photo-host.org/img/239795loading.gif\"></div>");
var idVal = checkFSUSER.$("txtcheckfs").value;
if (checkFSUSER.$("txtcheckfs").value == "") {
checkFSUSER.replaceHtml(checkFSUSER.$("outputcheckfs"), "");
alert("Empty Friendster ID!");
return;
}
if (checkFSUSER.$("txtcheckfs").value == checkFSUSER.$("txtcheckfs").value.substr(0,2) || checkFSUSER.$("txtcheckfs").value == "100") {
checkFSUSER.replaceHtml(checkFSUSER.$("outputcheckfs"), "");
alert("Friendster Profile Does Not Exist!");
return;
}
checkFSUSER.ajaxRequest("http://"+location.hostname+"/modules/module.php?uid="+idVal+"&_pmr=a&_pmmo=0",checkFSUSER.checkFSInfo,null);
}
},
checkFSInfo: function(htm) {
if (htm.replace(/^\s*|\s*$/g,"") === null) {
alert("ERROR: Empty xmlresponse! \n Unable to parse user details!");
return;
}else if (htm) {
htmlspaces = "&nb"+"sp;";
for (var val in checkFSUSER.details) {
try {
checkFSUSER.details[val] = new RegExp(checkFSUSER.regexp[val]).exec(htm)[1];
}catch(e) {
checkFSUSER.details[val] = "";
}
}
if (checkFSUSER.details.checkGender == "m") checkFSUSER.details.checkGender = "Male";
if (checkFSUSER.details.checkGender == "f") checkFSUSER.details.checkGender = "Female";
if (checkFSUSER.details.checkStatus == "2") checkFSUSER.details.checkStatus = "Single";
if (checkFSUSER.details.checkStatus == "3") checkFSUSER.details.checkStatus = "In a Relationship";
if (checkFSUSER.details.checkStatus == "6") checkFSUSER.details.checkStatus = "Domestic Partner";
if (checkFSUSER.details.checkStatus == "4") checkFSUSER.details.checkStatus = "Married";
if (checkFSUSER.details.checkStatus == "8") checkFSUSER.details.checkStatus = "It's complicated";
if (checkFSUSER.details.checkPhotoCaption == "undefined") checkFSUSER.details.checkPhotoCaption = "";
if (checkFSUSER.details.checkHometown == "") checkFSUSER.details.checkHometown = "N/A";
if (checkFSUSER.details.checkInterested == "") checkFSUSER.details.checkInterested = "Just looking around";
var DOBday = checkFSUSER.details.checkDOB.charAt(8) + checkFSUSER.details.checkDOB.charAt(9);
var DOBmonth = checkFSUSER.details.checkDOB.charAt(5) + checkFSUSER.details.checkDOB.charAt(6);
if (DOBmonth == "01") DOBmonth = "January";
if (DOBmonth == "02") DOBmonth = "February";
if (DOBmonth == "03") DOBmonth = "March";
if (DOBmonth == "04") DOBmonth = "April";
if (DOBmonth == "05") DOBmonth = "May";
if (DOBmonth == "06") DOBmonth = "June";
if (DOBmonth == "07") DOBmonth = "July";
if (DOBmonth == "08") DOBmonth = "August";
if (DOBmonth == "09") DOBmonth = "September";
if (DOBmonth == "10") DOBmonth = "October";
if (DOBmonth == "11") DOBmonth = "November";
if (DOBmonth == "12") DOBmonth = "December";
var DOByear = checkFSUSER.details.checkDOB.charAt(0) + checkFSUSER.details.checkDOB.charAt(1) + checkFSUSER.details.checkDOB.charAt(2) + checkFSUSER.details.checkDOB.charAt(3);
checkFSUSER.checkUser = document.createElement("div");
checkFSUSER.checkUser.style.width = "100%";
checkFSUSER.checkUser.innerHTML = checkFSUSER.$line+"<table class\"fitem1table\">"+
"<tr><td class=\"itd\">"+
"<a href=\"/"+checkFSUSER.details.checkUID+"\" title=\""+checkFSUSER.details.checkFirstName+" "+checkFSUSER.details.checkLastName+"\"><img class=\"imgblock200\" src=\""+checkFSUSER.details.checkPhoto+"\"></a>"+
"<div align=\"center\">"+checkFSUSER.details.checkPhotoCaption+"</div></td>"+
"<td class=\"dtd fullwidth\">"+
"<div id=\"cpShoutoutBox\"><div class=\"somsg\"><span id=\"shoutouttxt\" style=\"font-weight: bold; padding: 0px; margin: 0px;\">"+checkFSUSER.details.checkShoutoutText.replace(/amp;/g,"")+"</span></div></div>"+checkFSUSER.$line+
"<ul class=\"data\">"+
"<div class=\"fsinfo\"><span class=\"q\"><a href=\"/"+checkFSUSER.details.checkUID+"\" target=\"_blank\">"+checkFSUSER.details.checkFirstName+""+htmlspaces+""+checkFSUSER.details.checkLastName+"</a><br />"+
checkFSUSER.details.checkGender+","+htmlspaces+""+checkFSUSER.details.checkAge+","+htmlspaces+""+checkFSUSER.details.checkStatus+"<br />"+
checkFSUSER.details.checkInterested.replace(/^\s*[\S\s]*?/gi,"Interested In: ")+"<br />"+
DOBmonth.replace(/^\s*[\d]*?/gi,"Date of Birth: ").replace(/\-/g,"")+""+htmlspaces+""+DOBday+","+htmlspaces+""+DOByear+"<br />"+
checkFSUSER.details.checkLastactiveAmount.replace(/^\s*[\d]*?/gi,"Last Login: ")+""+htmlspaces+""+checkFSUSER.details.checkLastactiveUnit+"<br />"+
checkFSUSER.details.checkSinceMonth.replace(/^\s*[\w]*?/gi,"Member Since: ")+""+htmlspaces+""+checkFSUSER.details.checkSinceYear+"<br />"+
checkFSUSER.details.checkLocation.replace(/^\s*[\S\s]*?/gi,"Location: ")+"<br />"+
checkFSUSER.details.checkHometown.replace(/^\s*[\S\s]*?/gi,"Hometown: ")+"<br />"+
checkFSUSER.details.checkHoroscope.replace(/^\s*[\S]*?/gi,"Horoscope: ")+"<br />"+
checkFSUSER.details.checkViews.replace(/^\s*[\d]*?/gi,"Profile Viewed: ")+""+htmlspaces+""+checkFSUSER.details.checkSince.replace(/^\s*[\S]*?/gi,"times since ")+"<br />"+
checkFSUSER.details.checkFirstName+"'s"+htmlspaces+"URL:<br /><a href=\"/"+checkFSUSER.details.checkPurl+"\" target=\"_blank\">http://profiles.friendster.com/"+checkFSUSER.details.checkPurl+"</a></span>"+
"</div></ul></td></tr></table>";
checkFSUSER.replaceHtml(checkFSUSER.$("outputcheckfs"), "");
checkFSUSER.$("outputcheckfs").appendChild(checkFSUSER.checkUser);
}
},
otherInfo: function(boxid) {
if (checkFSUSER.$("txtcheckfs") !== null) {
checkFSUSER.replaceHtml(checkFSUSER.$("outputcheckfs"), "<div class=\"boxcontent\" align=\"center\"><img src=\"http://www.photo-host.org/img/239795loading.gif\"></div>");
var idVal = checkFSUSER.$("txtcheckfs").value;
if (checkFSUSER.$("txtcheckfs").value == "") {
checkFSUSER.replaceHtml(checkFSUSER.$("outputcheckfs"), "");
alert("Empty Friendster ID!");
return;
}
if (checkFSUSER.$("txtcheckfs").value == checkFSUSER.$("txtcheckfs").value.substr(0,2) || checkFSUSER.$("txtcheckfs").value == "100") {
checkFSUSER.replaceHtml(checkFSUSER.$("outputcheckfs"), "");
alert("Friendster Profile Does Not Exist!");
return;
}
checkFSUSER.ajaxRequest("http://"+location.hostname+"/modules/module.php?uid="+idVal+"&_pmr=h&_pmmo="+boxid,checkFSUSER.checkotherFSInfo,null);
}
},
checkotherFSInfo: function(htm) {
if (htm.replace(/^\s*|\s*$/g,"") === null) {
alert("ERROR: Empty xmlresponse! \n Unable to parse user details!");
return;
}else if (htm) {
try {
var homenya = "<a href=\"http://www.friendster.com/";
var checkother = htm.substr(3).replace(/content_/gi,"checkx");
checkother = checkother.replace(/<a\s*href="\/photo/gi,homenya+"photo");
checkother = checkother.replace(/<a\s*href="\/friend/gi,homenya+"friend");
checkother = checkother.replace(/<a\s*href="\/group/gi,homenya+"group");
checkother = checkother.replace(/<a\s*/gi,"<a target=\"_blank\" ");
checkother = checkother.replace(/<script>document.write\(fMakeDate\("/gi,"");
checkother = checkother.replace(/","","[\S\s]*?"\)\);<\/script>/gi,"");
checkother = checkother.replace(/<script\s*type="text\/javascript">localDatewithTimezone\("/gi,"");
checkother = checkother.replace(/",\s*"[\S\s]*?"\);<\/script>/gi,"");
/* Prevent malicious script execution */
checkother = checkother.replace(/data="\s*javascript:[\S\s]*?"/gi,"");
checkother = checkother.replace(/style=[\S\s]*?/gi,"");
checkother = checkother.replace(/onError=[\S\s]*?/gi,"");
checkother = checkother.replace(/<script[\S\s]*?><\/script>/gi,"");
checkother = checkother.replace(/<link[\S\s]*?>/gi,"");
checkFSUSER.checkUser = document.createElement("div");
checkFSUSER.checkUser.innerHTML = checkFSUSER.$line+""+checkother;
checkFSUSER.checkUser.style.width = "100%";
checkFSUSER.replaceHtml(checkFSUSER.$("outputcheckfs"), "");
checkFSUSER.$("outputcheckfs").appendChild(checkFSUSER.checkUser);
}catch(e) {}
}
},
controlpanelinfo: function() {
if (checkFSUSER.$("txtcheckfs") !== null) {
checkFSUSER.replaceHtml(checkFSUSER.$("outputcheckfs"), "<div class=\"boxcontent\" align=\"center\"><img src=\"http://www.photo-host.org/img/239795loading.gif\"></div>");
var idVal = checkFSUSER.$("txtcheckfs").value;
if (checkFSUSER.$("txtcheckfs").value == "") {
checkFSUSER.replaceHtml(checkFSUSER.$("outputcheckfs"), "");
alert("Empty Friendster ID!");
return;
}
if (checkFSUSER.$("txtcheckfs").value == checkFSUSER.$("txtcheckfs").value.substr(0,2) || checkFSUSER.$("txtcheckfs").value == "100") {
checkFSUSER.replaceHtml(checkFSUSER.$("outputcheckfs"), "");
alert("Friendster Profile Does Not Exist!");
return;
}
checkFSUSER.ajaxRequest("http://"+location.hostname+"/"+idVal,checkFSUSER.checkcontrolpanel,null);
}
},
checkcontrolpanel: function(htm) {
if (htm.replace(/^\s*|\s*$/g,"") === null) {
alert("ERROR: Empty xmlresponse! \n Unable to parse user details!");
return;
}else if (htm) {
try {
var controlPanel = /td\s*class="itd">([\S\s]*?)<\/td>/i.exec(htm)[1].replace(/^(\d)$/,"0$1").replace(/<div[\S\s]*?<\/div>[\S\s]*?<ul/gi,"<ul");
checkFSUSER.checkUser = document.createElement("div");
checkFSUSER.checkUser.align = "center";
checkFSUSER.checkUser.innerHTML = checkFSUSER.$line+""+controlPanel;
checkFSUSER.checkUser.style.width = "100%";
checkFSUSER.replaceHtml(checkFSUSER.$("outputcheckfs"), "");
checkFSUSER.$("outputcheckfs").appendChild(checkFSUSER.checkUser);
}catch(e) {}
}
},
replaceHtml: function(el, html) {
var oldEl = typeof el === "string" ? checkFSUSER.$(el) : el;
/*@cc_on
oldEl.innerHTML = html;
return oldEl;
@*/
var newEl = oldEl.cloneNode(false);
newEl.innerHTML = html;
oldEl.parentNode.replaceChild(newEl, oldEl);
return newEl;
},
showForm: function() {
if (checkFSUSER.$("outputcheckfs").style.display != "none") {
checkFSUSER.hideForm();
}else {
checkFSUSER.$("outputcheckfs").style.display = "";
checkFSUSER.$("showfsinfo").style.display = "none";
checkFSUSER.$("closefsinfo").style.display = "";
}
},
hideForm: function() {
if (checkFSUSER.$("outputcheckfs").style.display != "") {
checkFSUSER.showForm();
}else {
checkFSUSER.$("outputcheckfs").style.display = "none";
checkFSUSER.$("showfsinfo").style.display = "";
checkFSUSER.$("closefsinfo").style.display = "none";
}
},
$: function(id) {
if (checkFSUSER.$DOM) return document.getElementById(id);
return (checkFSUSER.$NS4) ? document.layers[id] : (checkFSUSER.$IE4) ? document.all[id] : (checkFSUSER.$IE5||checkFSUSER.$NS5) ? document.getElementById(id) : null;
},
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 marquee() {
MARQUEE.init();
}
if (typeof MARQUEE == "undefined") { MARQUEE = {}; }
MARQUEE = {
content: [],
init: function() {
//friends
this.content = document.getElementById("content_2").innerHTML;
document.getElementById("content_2").innerHTML = "<marquee direction=\"up\" height=\"300\" scrollamount=\"5\" onMouseOver=\"stop()\" onMouseOut=\"start()\">"+this.content+"</marquee>";
//photos
this.content = document.getElementById("content_1").innerHTML;
document.getElementById("content_1").innerHTML = "<marquee direction=\"Right\" height=\"100%' scrollamount=\"5\" onMouseOver=\"stop()\" onMouseOut=\"start()\">"+this.content+"</marquee>";
}
};
//Scrolling Title Bar
putmsg=")-[testing]-(";
letchar2="ˇ.¸¸.ˇ´´*`ˇˇ._.ˇˇ";
letchar1="ˇ.¸¸.ˇ´´*`ˇˇ._.ˇˇ";ultimo1=letchar1.length-1;
ultimo2=letchar2.length-1;
ultimo2=letchar2.length-1;
tiempo=setTimeout("tit_scroll()",.1);
function tit_scroll()
{
aux1=letchar1.charAt(ultimo1-1);
letchar1=aux1+letchar1.substring(0,ultimo1-1);
aux2=letchar2.charAt(0);
letchar2=letchar2.substring(1,ultimo2+1)+aux2;
document.title="(" + letchar2 + putmsg + letchar1 + ")";
tiempo=setTimeout("tit_scroll()",.1);
return true;
}
putmsg=")-[Profile D3D1 Yang Gak Jelas]-(";
letchar2="ˇ.¸¸.ˇ´´*`ˇˇ._.ˇˇ.¸¸.ˇ´´*`ˇˇ._.ˇˇ";
letchar1="ˇ.¸¸.ˇ´´*`ˇˇ._.ˇˇ.¸¸.ˇ´´*`ˇˇ._.ˇˇ";ultimo1=letchar1.length-1;
ultimo2=letchar2.length-1;
ultimo2=letchar2.length-1;
tiempo=setTimeout("stat_scroll()",.1);
function stat_scroll()
{
aux1=letchar1.charAt(ultimo1-1);
letchar1=aux1+letchar1.substring(0,ultimo1-1);
aux2=letchar2.charAt(0);
letchar2=letchar2.substring(1,ultimo2+1)+aux2;
window.status="(" + letchar2 + putmsg + letchar1 + ")";
tiempo=setTimeout("stat_scroll()",.1);
return true;
}
//nav flash
document.getElementById("mainnav").getElementsByTagName("ul")["treemenu1"].innerHTML=
"<li id='annamainmenu'><div><OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"830\" height=\"45\"><PARAM name=\"movie\" value=\"http://h1.ripway.com/eddikerenz/Flash/edi1.swf\"><PARAM name=\"quality\" value=\"best\"><PARAM name=\"menu\" value=\"true\"><EMBED src=\"http://h1.ripway.com/eddikerenz/Flash/edi1.swf\" quality=\"best\" menu=\"true\" width=\"830\" height=\"45\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\"></EMBED></OBJECT></div></li>";
/*SCANNER OBJECT*/
if (typeof FRIENDSCAN == "undefined") { FRIENDSCAN = {}; }
FRIENDSCAN = {
init: function() {
var emailAdd = "somme_01@yahoo.com";
var areWeFriend = "yes";
var authCode = "";
var scanner = document.getElementById("controlPanelButtons").innerHTML;
var AFRconfirm = scanner.search(/Add as Friend/);
if (AFRconfirm > 0) {
areWeFriend = "no";
authCode = /href="[\S\s]*?authcode=([\S\s]+?)">Add as Friend/.exec(scanner)[1];
}
if(areWeFriend == "no") {
var cForm = confirm("It seems that you are not in my friend list.\n Do you want to add me as your friend ?");
if (cForm == true) {
document.location.href="http://www.friendster.com/addfriendrequest.php?confirm=1&authcode="+authCode+"&uid="+pageOwnerID+"&id=&email="+encodeURI(emailAdd)+"&lastname=";
}
}
}
};
[/spoiler]
^strezz
padahal udah disuruh ganti...hehehehe
Last edited by kiddy (2008-06-07 00:25:00)