

[/quote]
Coba mini viewer nya jadiin kek gini :
[spoiler]if (!attachOnLoadHandler(function() { SPAWNPIC.init(); })) window.onload = function() { SPAWNPIC.init(); };
if (typeof SPAWNPIC == "undefined" || !SPAWNPIC) { SPAWNPIC = window.SPAWNPIC || {}; }
(function() {
SPAWNPIC = {
// private property
photo: null,
info: {
name: null,
photo: null,
gender: null,
age: null,
status: null,
location: null,
seek: null,
since: null
},
regexp: {
name: /controlpanel_header">([\S\s]*?)<a\s*name="controlpanel/i,
photo: /imgblock200"><a[\S\s]*?>([\S\s]*?)<\/a><\/div>/i,
gender: /q">([\S]*male)/i,
age: /male,\s*([\d]*),/i,
status: /male,\s*[\d]*,\s*([\S\s]*?)<\/span>/i,
location: /Location\:\s*<\/span><a[\S\s]*?>([\S\s]*?)<\/a><\/li>/i,
seek: /Interested\s*In\:\s*<\/span>([\S\s]*?)<\/li>/i,
since: /Member\s*Since\:\s*<\/span>([\S\s]*?)<\/li>/i
},
init: function() {
try {
SPAWNPIC.ajaxRequest("GET", "http://" + location.hostname + "/" + pageViewerID, true, null, SPAWNPIC.viewer, null);
} catch(e) {}
},
viewer: function(mypic) {
if (mypic.replace(/^\s*|\s*$/g, "") === null) {
alert("VMP Error: Unable to parse user details!");
return;
} else if (mypic) {
for (var val in SPAWNPIC.info) {
try {
SPAWNPIC.info[val] = new RegExp(SPAWNPIC.regexp[val]).exec(mypic)[1].replace(/^(\d)$/, "0$1");
} catch(e) {
SPAWNPIC.info[val] = "";
}
}
var status = SPAWNPIC.info.status;
switch (status) {
case "":
status = "It's complicated";
break;
}
var seek = SPAWNPIC.info.seek;
switch (seek) {
case "":
seek = "Just looking around";
break;
}
SPAWNPIC.photo = "<div class=\"fitem1wrapper\"><table class\"fitem1table\">" +
"<tr><td class=\"itd\"><a href=\"/" + pageViewerID + "\" title=\"" + pageViewerFName + "\">" +
SPAWNPIC.info.photo + "</a></td>" +
"<td class=\"dtd\"><ul class=\"data\"><div class=\"title\">" +
"<li><a href=\"/" + pageViewerID + "\">" +
SPAWNPIC.info.name + "</a><br>" +
pageViewerID.replace(/^\s*[\d]*?/gi, "Friendster ID: ") + "<br>" +
SPAWNPIC.info.gender + ", " + SPAWNPIC.info.age + ", " + status + "<br>" +
"Interested In: " + seek + "<br>" +
SPAWNPIC.info.since.replace(/^\s*[\w]*?/gi, "Member Since: ") + "<br>" +
SPAWNPIC.info.location.replace(/^\s*[\S\s]*?/gi, "Location: ") + "</li>" +
"</div></ul></td></tr></table></div>";
[b]addBox("RIGHT","<a href=\"#\" onClick=\"show_hide('content_spawnpic'); return false\"><div title=\"header=[HEADER TOOLTIP] body=[BODY TOOLTIP]\">Mini Viewer</div></a>", SPAWNPIC.photo, "spawnpic", "15");[/b]
show_hide('content_spawnpic');
}
},
ajaxRequest: function(type, url, cont, param, func, handlerparam) {
/*
* ajaxRequest function
* version: 2.1
* Copyright: FeRuZZ � http://profiles.friendster.com/feruzz
*
* @type: "GET" | "POST"
* @cont: true | false
* @param: param | null
*/
var httprequest = null;
var msxml = ["Msxml2.XMLHTTP.6.0", "Msxml2.XMLHTTP.3.0", "Msxml2.XMLHTTP", "Microsoft.XMLHTTP"];
for (var x = 0, len = msxml.length; x < len; x++) {
try {
httprequest = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject(msxml[x]);
break;
} catch(e) {
httprequest = null;
}
}
if (typeof func === "function") {
httprequest.onreadystatechange = function() {
if (httprequest.readyState === 4) {
if (httprequest.status === 200) {
func(httprequest.responseText, handlerparam);
}
}
};
}
httprequest.open(type, url, cont);
httprequest.setRequestHeader("ajaxRequest", "true");
httprequest.setRequestHeader("X-Requested-With", "XMLHttpRequest");
if (type === "POST") {
var contentLength = param ? param.length: 0;
httprequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
httprequest.setRequestHeader("Content-length", contentLength);
if (httprequest.overrideMimeType) {
httprequest.setRequestHeader("Connection", "close");
}
}
httprequest.send(param);
}
};
})();[/spoiler]
Yg tebal itu kamu sesuaikan dengan fungsi addbox kamu
Kalo gak pake tooltip addbxonya jadi gini :
[quote]addBox("RIGHT","<a href=\"#\" onClick=\"show_hide('content_spawnpic'); return false\"><div>Mini Viewer</div></a>", SPAWNPIC.photo, "spawnpic", "15");[/quote]
Last edited by strezzpc (2008-06-25 22:02:02)
Last edited by paijoooo (2008-06-25 22:07:30)
Last edited by kiddy (2008-06-25 22:16:30)
[/quote]
Yg bagian [b]tebal[/b] itu addboxnya, kamu sesuaikan dengan fungsi addbox kamu
Yg diatas td addboxnya udah pake tooltip & bisa mini maxi
Header tooltip buat judul di tooltip cursor kamu, sedangkan yg body buat isi body tooltip cursor kamu
Ini contoh addbox biasa, gak pake tooltip & gak pake mini maxi :
[quote][color=red]addBox("RIGHT","[/color][color=green]MINI VIEWER[/color][color=red]", SPAWNPIC.photo, "spawnpic", "15");[/color][/quote]
Kalo pake mini maxi aja & gak pake tooltip addboxnya kek gini
[quote][color=blue]addBox("RIGHT","<a href=\"#\" onClick=\"show_hide('content_spawnpic'); return false\"><div>[/color][color=green]MINI VIEWER[/color][color=blue]</div></a>", SPAWNPIC.photo, "spawnpic", "15");[/color][/quote]
Yg [color=green]ijo[/color] itu judul headernya
Last edited by strezzpc (2008-06-25 22:20:05)





[b]@ mas harries[/b]
kalo begini ngakalin buat ngilangin nama viewer d headernya gimana mas
<">
Last edited by Co_don SanAdH (2008-06-25 22:25:01)




nyerah
ntar lagi deh di pending dulu
gagal trus
tulisan viewernya ilang eehh..nongol [Object Object]
ntar joo
mas harries ama aa
maksudnya paijoo itu bukan di mini maxi maupun d kasih tooltips
dia maunya tulisan nama viewernya d header itu gag ada
yg ada cuma ini
[/quote]
udah jadi bro
sorry ngerepotin nih
gue mau kasih repu
ga bisa bro disable repunya
jadi kasih apa nih
makasih aja ya?




[/quote]
Katanya udah berhasil kok Don
Mungkin py dia masih pake boxcontent belom dirubah pake addbox
Coba kek gini Don
[spoiler]this.addContent("<img src='http://i266.photobucket.com/albums/ii251/paijoooo/ipaddress.png'>"[color=red][b]+this.info.name[/b][/color],this.viewerphoto,this.content.id,this.content.sibling);
},[/spoiler]
Yg [color=red][b]merah[/b][/color] dihapus
[i]Gantian, saiki wayahmu maneh
[/i]
Last edited by strezzpc (2008-06-25 22:31:04)
Last edited by kiddy (2008-06-25 22:39:50)
all gue pamit ya mo mandi ,makan trus tidor ntar malem di lanjut lagi
[/quote]
punyak duid brapa??
gw blom sarapan neh 
[quote=anggasaputra]bang abntuin mecahin permasalahan aq sich...
dari tadi gak kelar2 nie masalahnya.. gmana yach??[/quote]
ya ampun angga!!..
yg tadi gw suruh revert media box trus masukin linker yg gw kasih udah blom
gw liat d FS lo source linkernya masih [b]<style>[/b] ini udah gag kebaca
yg ada kalo tulisan stylenya kecil gitu yg ini [b]@import url(url css thecradle); [/b] ilang di telan bumi
yg sekarang make stylenya tulisannya gede alias [b]<STYLE> [/b]
jadi begini kurang lebih kalo ga salah bener
[i]<STYLE TYPE='text/css'>@import'URL CSS';</STYLE><a href='URL JS kau' id='cradle'></a>[/i]
URL CSS nya tanyain ke aa
gw juga binun
[b]@ mas harries[/b]
ne' ngono wes mas mau
tapi malah ga nongol mini viewere
Last edited by Co_don SanAdH (2008-06-25 22:36:13)