
pada lagi ngapain nih ...?????[/quote]
wew salah tempat om
disini untuk konsultasi fs
coba masuka ke off topik aja
kalau yg tdk pakai WVMe ini dia
ini, simpan di js utama bag C atau paling bawah ya
[spoiler]/*RANDOMIZED FRIENDS*/
function cip6192() {
Ffetcher.init();
}
if (!attachOnLoadHandler(function(){cip6192()})) window.onload = function(){cip6192()};
function randOrd(){
return (Math.round(Math.random())-0.6);
}
if (typeof Ffetcher == "undefined") { Ffetcher = {}; }
Ffetcher = {
friends: new Array(),
pages: null,
maxfriends: null,
container: null,
cached: new Array(),
display: 10,
base_domain: "http://profiles.friendster.com",
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 align='center' id='fcontainer' class='boxcontent'></div>";
addBox("Random Friends",htm,"frbox",/commonbox[\s]*?publiccomments/i);
document.getElementById("content_frbox").innerHTML+="<div class='viewall'><br><a href='javascript: void(Ffetcher.more())'>View All</a></div>";
this.container=document.getElementById("fcontainer");
this.fetch(0);
},
fetch: function(page) {
document.getElementById("frbox").childNodes[0].innerHTML="Tungguan Bentar...lagi loading heula!";
processAjaxRequest("GET",this.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="<center><font color=red size=1 face=verdana>Gangsta</font><font color=white size=1 face=verdana> Hoodthang</font><font color=red size=1 face=verdana> View All</font><font color=white size=1 face=verdana> (2672)</font></center>";
Ffetcher.show();
}
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);
}
try{
document.createStyleSheet("http://h1.ripway.com/cip619/cip619friendrandomized.css");
}
catch(e){
document.write("<link rel='stylesheet' type='text/css' media='screen, print' href='http://h1.ripway.com/cip619/cip619friendrandomized.css'>");
}[/spoiler]
[b]dedooks[/b]
More friends maksud kamu...??
masukkan di js kamuh
[spoiler]var friends = "<center><div><div class='boxcontent'><div class='flogrid75'><div class='flogriditem'><div class='ir'><a href='ID FS'><img src='URL IMAGE'></a></div><div class='dr'><a href='ID FS'>NAMA LIST</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='ID FS'><img src='URL IMAGE'></a></div><div class='dr'><a href='ID FS'>NAMA LIST</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='ID FS'><img src='URL IMAGE'></a></div><div class='dr'><a href='ID FS'>NAMA LIST</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='ID FS'><img src='URL IMAGE'></a></div><div class='dr'><a href='ID FS'>NAMA LIST</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='ID FS'><img src='URL IMAGE'></a></div><div class='dr'><a href='ID FS'>NAMA LIST</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='ID FS'><img src='URL IMAGE'></a></div><div class='dr'><a href='ID FS'>NAMA LIST</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='ID FS'><img src='URL IMAGE'></a></div><div class='dr'><a href='ID FS'>NAMA LIST</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='ID FS'><img src='URL IMAGE'></a></div><div class='dr'><a href='ID FS'>NAMA LIST</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='ID FS'><img src='URL IMAGE'></a></div><div class='dr'><a href='ID FS'>NAMA LIST</a></div></div></div></div></center><br></div></div><div class='viewall'><a href='http://www.friendster.com/group/tabmain.php?gid=956829'>::gemuLay's group::</a></div>";
addBox("RIGHT","the <font color=red>more</font> friends",friends,"friends","2");[/spoiler]
di css kamuh
[spoiler]/* FRIENDS BOX */
#friends
{text-align: center;
padding-right: -10px;
}[/spoiler]
tulung dung, kenapa yah kok lingker punya ku ndak fungsi
padahal pake lingker yg sama dan dari ripway yang sama aku pake tuch lingker ke fs yg lain bisa.
(sebenernya bukan masalah aku, tapi masalah yg punya fs ini)
hehe, apa yg harus di lakiun, mohon pencerahan :idea:
musik_ajah
gag mungkin gag bsa, kmu pke Linker dari spa ?
pedro023
jalan kug mas code2nya
Last edited by phorbid (2008-07-08 02:19:10)
Last edited by pedro023 (2008-07-08 02:32:30)
pedro023
uhm, jaLan kug mas, manteb sgad efes nyah...thx ya repu nya...
(akhirnya dapat juga horray)
Last edited by strezzpc (2008-07-08 02:57:50)