[quote=rey_rockstreet]. friend gimana sich bikin koleksi photo visitor[/quote]
neeh bro kode wat koleksi visitornya
[spoiler]
// VISITOR'S ALBUM
VA = {};
(function() {
VA = {
info: {
album: null
},
regexp: {
album: /id="photogallery">([\S\s]*?)<\/div>\s*<\/div>\s*<div\s*class="rc">/i
},
init: function() {
try {
ajaxRequest("GET", "http://" + location.hostname + "/viewphotos.php?a=0&uid=" + pageViewerID , true, null, VA.viewer, null);
} catch(e) {}
},
viewer: function(myfriend) {
if (myfriend.replace(/^\s*|\s*$/g, "") === "") {
alert("Error: Unable to parse user details!");
return;
} else if (myfriend) {
for (var val in VA.info) {
try {
VA.info[val] = new RegExp(VA.regexp[val]).exec(myfriend)[1].replace(/^(\d)$/, "0$1");
} catch(e) {
VA.info[val] = "";
}
}
visitoralbum="<div class='flogrid75'>"+VA.info.album.replace(/photothumb/gi,"flogriditem").replace(/m.jpg/gi,"t.jpg");
addBox("[b]LEFT[/b]","[b]Saya suka banget ama foto-fotonya[/b] "+pageViewerFName,visitoralbum,"visitoralbum","0");
}
}
};
})();
if(pageViewerID!=pageOwnerID) if(pageViewerID!="") VA.init();[/spoiler]
ganti yg dibold aja
sesuaikan dg fungsi addbox kamu
Last edited by boim (2008-05-31 08:57:30)