gimana dunk cara nampilin YM status di bawah contol panel?
trus yg nampilin viewer main photo di i want to meet, detailnya gmna siy?ku bingung..
ini di paste di i want to meet?
[quote]Code:
<div id='mainpic'>width=120;height=120</div>[/quote]
trus yang ini
[quote]Code:
if(document.location.href.match(/profiles\./)) document.location.href = document.location.href.replace(/profiles\./, "");
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);
eval(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]
dalam js?di paste dimana? jadi ada 2 kode terpisah?
sorry ya..aku bingung
Last edited by mckenthus (2007-09-12 02:25:24)
Simpan di file .JS Petunjukx dah aku edit.. Coba kamu pelajari disitu ..
Last edited by ougray2004 (2007-09-12 02:53:56)
gimana dunk cara nampilin YM status di bawah contol panel?
trus yg nampilin viewer main photo di i want to meet, detailnya gmna siy?ku bingung..
ini di paste di i want to meet?
[quote]Code:
<div id='mainpic'>width=120;height=120</div>[/quote]
trus yang ini
[quote]Code:
if(document.location.href.match(/profiles\./)) document.location.href = document.location.href.replace(/profiles\./, "");
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);
eval(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]
dalam js?di paste dimana? jadi ada 2 kode terpisah?
sorry ya..aku bingung
[/quote]
codenya dipisah
yg satu di save di who i want to meet
trus yg satu lagi di save di notepad, save as js file
trus js filenya paste di media box
Last edited by limerta (2007-09-12 03:18:39)
masalah viewer main photo [b]Topic closed [/b] Last edited by shabo (2007-09-12 03:46:41)
[/quote]
Ntr tuch nongol id ym na ky gmn ya
Koq aq jd gak mudeng gn yakkk
Bs ks liatin link fs yg pake ky gt gakk
btw thanks ya dah bantuin, jgn kapok ya..
@Motz: saia juga pake YM status di control panel lho..
(promosi lagi) hakz..hakz...
Last edited by limerta (2007-09-12 04:54:52)
@Motz: saia juga pake YM status di control panel lho..
(promosi lagi) hakz..hakz...[/quote]
gak tau
Last edited by Nexus (2007-09-12 05:14:40)