You are viewing a post by dj_afran. View all 25607 posts in Bagi para member yang ingin bertanya seputar tweaking FS. Silahkan bertanya dan posting disini. Sebelum itu harap membaca dan mengikuti [url=http://theftalk.com/t23371-FORUM-RULES.html][b]FORUM .

 2005
 2005 0
 0 1969-12-31
 1969-12-31 [b]jujum[/b]
neeh bro..
[quote]/*RANDOMIZED FRIENDS*/
if (typeof Ffetcher == "undefined") { Ffetcher = {}; }
Ffetcher = {
    friends: new Array(),
    pages: null,
    maxfriends: null,
    container: null,
    cached: new Array(),
    display: 8,
   
    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","Friends",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... Please 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="<a href=\"#\" onClick=\"show_hide('content_frbox'); return false\"><div title=\"header=[hway "+pageViewerFName+"] body=[Click here to view my other Friends]\">"+pageOwnerFName+"'s Random Friends</div></a>";
    show_hide('content_frbox');
    Ffetcher.show();
}[/quote]
itu udah gw pakein tooltips sama min/max..
taro di sini aja..
[quote]/***********
* BAGIAN B *
***********/
function onProfileLoad() {
    //onload handler
ADDBOX
}
[b]DI SINI[/b]...[/quote]
hmm..
css'a yang mana ya..??
loopa gw..
tanya ma yang lain aja..
^_^
 [b]jujum[/b]
neeh bro..
[quote]/*RANDOMIZED FRIENDS*/
if (typeof Ffetcher == "undefined") { Ffetcher = {}; }
Ffetcher = {
    friends: new Array(),
    pages: null,
    maxfriends: null,
    container: null,
    cached: new Array(),
    display: 8,
   
    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","Friends",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... Please 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="<a href=\"#\" onClick=\"show_hide('content_frbox'); return false\"><div title=\"header=[hway "+pageViewerFName+"] body=[Click here to view my other Friends]\">"+pageOwnerFName+"'s Random Friends</div></a>";
    show_hide('content_frbox');
    Ffetcher.show();
}[/quote]
itu udah gw pakein tooltips sama min/max..
taro di sini aja..
[quote]/***********
* BAGIAN B *
***********/
function onProfileLoad() {
    //onload handler
ADDBOX
}
[b]DI SINI[/b]...[/quote]
hmm..
css'a yang mana ya..??
loopa gw..
tanya ma yang lain aja..
^_^
				|  |