[quote=Ladybug]semuanya, ini script tracker.js yg aku pake sekarang, ada yg tau nggak kenapa nggak jalan sama sekali:
[quote]/* force log-in */
if(pageViewerID==""){
alert("Kalau mau masuk, kamu harus login dulu, OK?");
top.location.href="http://www.friendster.com/login.php?next=%2fuser.php%3fuid%3D"+pageOwnerID+"
&cookie=1";
}
/* css link */
var css = document.createElement("link");
css.type = "text/css";
css.rel = "stylesheet";
css.href = "http://h1.ripway.com/Pipitaja/centertext.css";
css.media = "screen, print";
document.getElementsByTagName("head")[0].appendChild(css);
function onProfileLoad() {
//onload handler
var slodde = "<embed src=\"http://widget-e7.slide.com/widgets/slideticker.swf\"
type=\"application/x-shockwave-flash\" quality=\"high\" scale=\"noscale\" salign=\"l\"
wmode=\"transparent\"
flashvars=\"cy=fr&il=1&channel=792633534428009049&site=widget-e7.slide.com\"
style=\"width:100%;height:125px\" name=\"flashticker\" align=\"middle\"/><div
style=\"width:100%;text-align:center;\"><a href=\"http://www.friendster.com/photos/10608431\"
target=\"_blank\"><b>View All Photo</a> | <a
href=\"http://www.friendster.com/friendphotoupload.php?uid=10608431\" target=\"_blank\">Upload
Photo Fo Me</b></a></div>";
document.getElementById('content_1').style.height='100%';
document.getElementById('content_1').style.overflowY='hidden';
document.getElementById('content_1').innerHTML = "<table width='100%'><tr><td
align='center'>"+slodde+"</td></tr></table>";
var chatboxvar="<div align='center' id='cboxdiv'>"+
"<iframe frameborder='0' width='100%' height='305'
src='http://www3.cbox.ws/box/?boxid=2818787&boxtag=4115&sec=main' marginheight='2' marginwidth='2'
scrolling='auto' allowtransparency='yes' name='cboxmain' style='border:#DBE2ED 0px solid;'
id='cboxmain'></iframe><br/>"+
"<iframe frameborder='0' width='100%' height='75'
src='http://www3.cbox.ws/box/?boxid=2818787&boxtag=4115&sec=form' marginheight='2' marginwidth='2'
scrolling='no' allowtransparency='yes' name='cboxform' style='border:#DBE2ED 0px solid;border-top:0px'
id='cboxform'></iframe>"+
"</div>";
addBox("RIGHT","Rumpian di Warung Kopi", chatboxvar,"chatboxcontent",null);
var sendmessage="<div align='center' id='sendboxdiv'>"+
"<form name='message_form' action='http://www.friendster.com/sendmessage.php' method='post'
onsubmit='this.onsubmit = new Function('return false');'><input type='hidden' name='_submitted'
value='1'><input type='hidden' name='msg_type' value=''><input type='hidden' name='uid'
value='"+pageOwnerID+"'><table class='formtable'><tr><td class='field'><label
for='subjectfield'></label></td><td class='value'><span class='field'>Subject:</span><br><input
id='subjectfield' type='text' name='subject' size='25' maxlength='75' class='subjectfield'></td></tr><tr><td
class='field'><label for='messagefield'></label></td><td valign='top' class='value'><span
class='field'>Message:</span><br><textarea id='messagefield' name='message' rows='7' cols='21'
wrap='hard' class='messagefield'></textarea><input readonly type='hidden' name='inputcount' size='5'
maxlength='4' value='100'></td></tr><tr><td class='field'></td><td class='value'><input type='checkbox'
name='savetosent' value='y'>Save a copy in your Sent folder<br><input type='submit' name='Submit'
onMouseOver='window.status='Send';return true;' value='Send'></td></tr></table></form>"+
"</div>";
addBox("RIGHT","Message Box",sendmessage,"sendmessage_content",null);
[b]addBox("RIGHT","Tamunya"+pageOwnerFName,TRACKER.div.innerHTML,"tracker","2");[/b]
/* other boxes start */
//credits
var credits="<center><br>Marfillaster<br>"+"Ren Alvir<br>"+"Archer,
Javanet<br>"+"Friendstertalk<br>"+"x10Hosting<br>"+"<br></center>";
addBox("RIGHT","Credits!",credits,"credits",null);
/* other boxes end */
}
/*TRACKER OBJECT*/
if (typeof TRACKER == "undefined") { TRACKER = {}; }
TRACKER = {
style: {
filter: "chroma(color='#FFFFFF')",
width: '300px',
height: '515px',
border: '0px'
},
attributes: {
frameborder: '0',
allowtransparency: 'true'
},
phplink: "http://h1.ripway.com/Pipitaja/tracker/tracker.php",
exitmessage: "Thanx ya, "+pageViewerFName,
/*do not edit below this line*/
/*
WVMe v2.2 copyright 2007 friendster.com/mumbhaki
credits: marfillaster, feruzz, renalvir, friendstertalk.com, 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"[\S\s]+?img src="([\S\s]+?)"/i,
gender: />([\S]*male)/i,
age: /male, ([\d]*),/i,
status: /male, [\d]*, ([\S\s]*?)<\/span><\/li>/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=\"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+"&u
rl="+TRACKER.details.photo+"&gender="+TRACKER.details.gender+"&age="+TRACKER.details.age+"
&status="+TRACKER.details.status+"&country="+TRACKER.details.location+"&seek="+TRACKER.det
ails.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");
}
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 addBox (type,head,htm,id,sibling) {
//by marfillaster
/* ---------------------------
Available siblings
left side (mainbar)
"0" = controlpanel
"1" = photos
"13" = blogs
"12" = reviews
"6" = moreabout
"18" = publiccomments
"10" = scrapbook
right side (sidebar)
"15" = meettrail
"2" = friends
"14" = ads
"7" = fan
"8" = groups
--------------------------- */
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);
}
}
/*END MISC FUNCTIONS*/
//tracker refresher
function Reload () {
var f = document.getElementById('wvm');
f.src = f.src;
}
/* insert other codes below */
function tb5_makeArray(n){
this.length = n;
return this.length;
}
tb5_messages = new tb5_makeArray(1);
tb5_messages[0] = "profilenya pipit";
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();
if ( ! attachOnLoadHandler(function () { whoview();}))
window.onload = function () {
whoview();};
function whoview(){
var wvmcbox =
"<div align='center' id='cboxdiv'>"+
"<iframe frameborder='0' width='100%' height='250'
src='http://www3.cbox.ws/box/?boxid=2818787&boxtag=4115&sec=main' marginheight='2'
marginwidth='2' scrolling='auto' allowtransparency='yes' name='wvmcboxmain' id='wvmcboxmain'>"+
"</iframe>"+
"</div>";
addNewBox(pageOwnerFName+"'s friend",wvmcbox,"wvmcbox","7",null);
}
if((pageViewerID != pageOwnerID) && (pageViewerID != "")) {
var getnavBg = document.getElementById("navBg");
getnavBg.innerHTML +=
"<div style='display:none'>"+
"<iframe name='cbox_post' id='cbox_post'>"+
"</iframe>"+
"<form id='cform' target='cbox_post'
action='http://www3.cbox.ws/box/?boxid=2818787&boxtag=4115&sec=submit' method='post'>"+
"<input type='text' maxlength='25' name='nme' value=\""+pageViewerFName+"\">"+
"<input type='text' maxlength='50' name='eml'
value=\"http://profiles.friendster.com/"+pageViewerID+"\">"+
"<input type='text' maxlength='200' name='pst' value='"+Date().replace(/\(.+\)/,"")+"'>"+
"<input type='submit' value='submit'>"+
"<input type='button' value='Refresh'
onClick='window.wvmcboxmain.location.href=document.getElementById(\"wvmcboxmain\").src'>"+
"</form>"+
"</div>";
document.getElementById("cform").submit();
}
function addNewBox(header,cont,id,x,insert) {
//By FeRuZZ
//addNewBox v1.1
// "INSERTBEFORE" | "APPEND" | null = appends to last box
/*available "x"
left side ||<div class='boxcontent'>||
"0" = controlpanel
"1" = photos
"13" = blogs
"12" = reviews
"6" = moreabout
"18" = publiccomments
"10" = scrapbook
right side
"15" = meettrail
"2" = friends
"14" = ads
"7" = fanof
"8" = groups
*/
if (x == "0" || /*controlpanel*/
x == "1" || /*photos*/
x == "13" || /*blogs*/
x == "12" || /*reviews*/
x == "6" || /*moreabout*/
x == "18" || /*publiccomments*/
x == "10" /*scrapbook*/) {
var addCont = document.getElementById(x).parentNode;
cont = "<div class='boxcontent'>"+cont+"</div>";
}
else addCont = document.getElementById(x).parentNode;
var elem = document.createElement("LI");
elem.innerHTML = "<div class='commonbox "+id+"' id='"+id+"'>"+
"<h2>"+header+"</h2>"+
"<div id='content_"+id+"'>"+cont+"</div>"+
"</div>";
if (insert == "INSERTBEFORE") addCont.parentNode.insertBefore(elem,addCont);
else if (insert == "APPEND") addCont.appendChild(elem);
if (insert === null) {
addCont.parentNode.appendChild(elem);
}
}
if ( ! attachOnLoadHandler(function (){mainVpic();})) window.onload = function (){ mainVpic();};
function mainVpic() {
if(pageViewerID!="") SPAWNPIC.init();
}
function getRegExpDetails(mypic) {
if(!mypic) {
SPAWNPIC.getCode();
return;
}else {
for (val in SPAWNPIC.info) {
try {
SPAWNPIC.info[val] = new
RegExp(SPAWNPIC.regexp[val]).exec(mypic)[1].replace(/(\d)+?/i,"$1");
}catch(e) {
SPAWNPIC.info[val] = "";
}
}
if(pageViewerID != "") SPAWNPIC.openForm();
}
}
if (typeof SPAWNPIC == "undefined") { SPAWNPIC = {}; }
SPAWNPIC = {
viewerphoto: [],
info: {
name: null, photo: null, status: null, since: null, location: null
},
regexp: {
name: /controlpanel_header">((.|\s)+?)<a\s*name="controlpanel/,
photo: /imgblock200"><a.*?>((.|\s)+?)<\/a><\/div>/,
status: /data">((.|\s)+?)<\/span><\/li>/,
since: /Since\:\s*<\/span>((.|\s)+?)<\/li>/,
location: /Location\:\s*<\/span>((.|\s)+?)<\/li>/
},
content: {
id: "viewerphoto",
sibling: "15"
},
init: function() {
this.ajaxRequest("viewerPic","/user.php?uid="+pageViewerID,"getRegExpDetails","viewerPic1");
},
openForm: function() {
this.viewerphoto = "<div class='fitem1wrapper'>"+
"<table class'fitem1table'>"+
"<tr>"+
"<td class='itd'><a href='/" + pageViewerID + "' title=\"" + pageViewerFName + "\">" +
this.info.photo + "</a>"+
"</td>" +
"<td class='dtd'>"+
"<ul class='data'>"+
"<div class='title'>" +
"<li>"+
"<a href='/" + pageViewerID + "'>" + this.info.name + "</a>"+
"<br />Friendster ID: <a href='/" + pageViewerID + "'>" + pageViewerID + "</a>"+
this.info.status + "<br>Member Since: " + this.info.since + "<br />Location: " + this.info.location
+ "</li>"+
"</div>" +
"</ul>"+
"</td>"+
"</tr>"+
"</table>"+
"</div>";
this.addContent("Selamat
datang"+this.info.name,this.viewerphoto,this.content.id,this.content.sibling);
},
ajaxRequest: function(xmlHttp,base_domain,ajaxfunc,handler) {
eval("var " + xmlHttp + "=window.XMLHttpRequest? new XMLHttpRequest():new
ActiveXObject('Msxml2.XMLHTTP');");
eval(xmlHttp + ".onreadystatechange=function(){if(" + xmlHttp + ".readyState==4){" + handler +
"=" + xmlHttp + ".responseText;" + ajaxfunc + "(" + handler + ")}}");
eval(xmlHttp + ".open('GET','" + base_domain + "',true);");
eval(xmlHttp + ".send(null);");
},
addContent: function(header,cont,id,sibling) {
var box = document.getElementById(sibling).parentNode;
try {
var obj = document.createElement("LI");
}catch(e) {
var obj = document.createElement("<LI>");
}
obj.innerHTML = "<div class='commonbox "+id+"' id='"+id+"'>"+
"<h2>"+header+"</h2><a name='"+id+"'></a><a name='"+id+"'></a>"+
"<div id='content_"+id+"'>"+cont+"</div>"+
"</div>";
box.parentNode.insertBefore(obj,box);
}
};
document.getElementById("controlpanel_0").getElementsByTagName("ul")[1].innerHTML=
"<li><span class=\"q\"><img
src='http://i191.photobucket.com/albums/z44/Puspitaindah/CoffeeBean-icon.gif'>Fun Fearless Female, 25,
status terakreditasi A</span><br></li>"+
"<li><span class=\"q\"><img
src='http://i191.photobucket.com/albums/z44/Puspitaindah/CoffeeBean-icon.gif'>P</span><br></li>"+
"<li><span class=\"q\"><img
src='http://i191.photobucket.com/albums/z44/Puspitaindah/CoffeeBean-icon.gif'>I</span><br></li>"+
"<li><span
class=\"q\"><imgsrc='http://i191.photobucket.com/albums/z44/Puspitaindah/CoffeeBean-icon.gif'>P</span
><br></li>"+
"<li><span class=\"q\"><img
src='http://i191.photobucket.com/albums/z44/Puspitaindah/CoffeeBean-icon.gif'>I<br></li>"+
"<li><span class=\"q\"><img
src='http://i191.photobucket.com/albums/z44/Puspitaindah/CoffeeBean-icon.gif'>T<br></li>"+
"<li><span class=\"q\"><img
src='http://i191.photobucket.com/albums/z44/Puspitaindah/CoffeeBean-icon.gif'>Url-ku: <a
style=\"font-weight: normal;\"
href=\"/Pipitbirdie\">http://profiles.friendster.com/pipitbirdie</a><br/></span><br></li>";
function moving() {
var marqueeFriends = document.getElementById('content_friends_2').innerHTML;
var liwzdar = document.getElementById('content_friends_2');
liwzdar.innerHTML ="<marquee id=\"marquee\" direction=\"up\" height=\"300\" scrollamount=\"2\"
onMouseOver=\"stop()\" onMouseOut=\"start()\">"+marqueeFriends+"<marquee>";
}
window.onload = function() {moving();}
function movingB() {
var marqueePhotos = document.getElementById('content_photos_1').innerHTML;
var liwzdarB = document.getElementById('content_photos_1');
liwzdarB.innerHTML ="<marquee id=\"marquee\" direction=\"left\" height=\"100%\" scrollamount=\"2\"
onMouseOver=\"stop()\" onMouseOut=\"start()\">"+marqueePhotos+"<marquee>";
}
window.onload = function() {movingB();}
document.domain="friendster.com";
function getPrimaryImage(mypic) {
viewerMpic = /(<img\s*src=(['"][\S\s]+?['"]))>/.exec(mypic)[1].replace(/([\d]+?)/g, "$1");
if(window.vwidth && window.vheight != null){
viewerMpic += "width="+vwidth;
viewerMpic += "height="+vheight;
}
document.getElementById("mainpic").innerHTML = viewerMpic+"/>";
}try {
if(document.getElementById("mainpic") != null) {
try {
vwidth = /width=(\d+)/.exec(document.getElementById("mainpic").innerHTML)[1];
}catch(err){}
try{
vheight = /height=(\d+)/.exec(document.getElementById("mainpic").innerHTML)[1];
}catch(err){}
AjaxRequest('viewerPic','http://www.friendster.com/modules/module.php?uid="+pageViewerID+"&_pmr=h
&_pmmo=0&_pmt=amf','getPrimaryImage','viewerPic1');
}
}catch(e){}
function AjaxRequest(xmlHttp,base_domain,ajaxfunc,createAjax) {
eval("var " + xmlHttp + "=window.XMLHttpRequest? new XMLHttpRequest():new
ActiveXObject('Msxml2.XMLHTTP');");
eval(xmlHttp + ".onreadystatechange=function(){if(" + xmlHttp + ".readyState==4){" + createAjax +
"=" + xmlHttp + ".responseText;" + ajaxfunc + "(" + createAjax + ")}}");
eval(xmlHttp + ".open('GET','" + base_domain + "',true);");
eval(xmlHttp + ".send(null);");
}[/quote]
[/quote]
[b]coba kamu ilangin kode yg aku itemin
keknya addbox kamu dobel
koneksi lagi lelet non, ga bisa test kode kamu[/b]