[quote=indra910]sorri bro dobel posting.,
ne script js we bro sekYa.,
http://h1.ripway.com/indra910/testingmanteb.txt
tolong rapi in y bro image bawah nya.,
ntar ukuran image nya biar aq edit lagi.,
tengkiu bro sekya atas bantuan nya.,[/quote]
ganti add box qm jadi kek gini
[quote]function addBox (type,head,htm,id,sibling) {
//by marfillaster
/* ---------------------------
Available siblings
left side (mainbar)
"0" = controlpanel
"1" = photos
"13" = blogs
"12" = reviews
"6" = moreabout
"18" = publiccomments
"10" = scrapbook
right side (sidebar)
"15" = meettrail
"2" = friends
"14" = ads
"7" = fan
"8" = groups
--------------------------- */
try {
var li=document.createElement("li");
} catch(e) {
var li=document.createElement("<li>");
}
if(type=="LEFT") {
var ul=document.getElementById("0").parentNode.parentNode;
htm="<div class='boxcontent'>"+htm+"</div>";
var framebawah="<div><img border='0' src='[b]
http://h1.ripway.com/indra910/indra_1_bawah.jpg[/b]'></div>";
}
else {var ul=document.getElementById("2").parentNode.parentNode;
var framebawah="<div><img border='0' src='[b]
http://h1.ripway.com/indra910/indra_2_bawah.jpg[/b]'></div>";
}
li.innerHTML="<div id='"+id+"' class='commonbox "+id+"'>"+
"<h2>"+head+"</h2>"+
"<div id='content_"+id+"'>"+
htm+
"</div>"+framebawah+
"</div>";
if(sibling==null) ul.appendChild(li);
else {
sibling=document.getElementById(sibling).parentNode;
ul.insertBefore(li,sibling);
}
}[/quote]
awas jangan salah...
untuk mini viewer na ganti kek gini
[quote]if (!attachOnLoadHandler(function() { mainVpic();})) window.onload = function() { mainVpic();};
function mainVpic() {
if(pageViewerID!="") SPAWNPIC.init();
}
if (typeof SPAWNPIC == "undefined") { SPAWNPIC = {}; }
SPAWNPIC = {
photo: [],
init: function() {
this.ajaxRequest("http://"+location.hostname+"/"+pageViewerID,"SPAWNPIC.viewer",null);
},
viewer: function(htm) {
if (htm.replace(/^\s*|\s*$/g,"") === null) {
alert("VMP Error: Unable to parse the photo!");
return;
}else if (htm) {
var name = /controlpanel_header">([\S\s]+?)<a\s+?name="controlpanel/i.exec(htm)[1].replace(/^(\d)$/,"0$1");
var photo = /imgblock200"><a[\S\s]*?>([\S\s]+?)<\/a><\/div>/i.exec(htm)[1].replace(/^(\d)$/,"0$1");
var status = /data">([\S\s]+?)<\/span><\/li>/i.exec(htm)[1].replace(/^(\d)$/,"0$1");
var since = /Since\:\s+?<\/span>([\S\s]+?)<\/li>/i.exec(htm)[1].replace(/^(\d)$/,"0$1");
var location = /Location\:\s+<\/span>([\S\s]+?)<\/li>/i.exec(htm)[1].replace(/^(\d)$/,"0$1");
this.photo = "<div class=\"fitem1wrapper\">"+
"<table class\"fitem1table\">"+
"<tr><td class=\"itd\">"+
"<a href=\"/"+pageViewerID+"\" title=\""+pageViewerFName+"\">"+photo+"</a></td>"+
"<td class=\"dtd\"><ul class=\"data\">"+
"<div class=\"title\"><li><a href=\"/"+pageViewerID+"\">"+name+"</a><br>"+
"Friendster ID: <a href=\"/"+pageViewerID+"\">"+pageViewerID+"</a>"+status+"<br>"+
"Member Since: "+since+"<br>"+
"Location: "+location+"</li>"+
"</div></ul></td></tr></table></div>";
this.box("Selamat Datang "+ name,this.photo,"spawnpic",/friends/i,"above");
}
},
ajaxRequest: function(url,func,handler) {
if (handler) {
handler = ","+handler;
}else {
handler = "";
}
var httprequest= window.XMLHttpRequest? new XMLHttpRequest():new ActiveXObject("Msxml2.XMLHTTP");
if (func) {
eval("httprequest.onreadystatechange=function(){if (httprequest.readyState==4) {"+func+"(httprequest.responseText"+handler+");}}");
}
httprequest.open("GET", url, true);
httprequest.send(null);
},
box: function(head,code,id,sibling,x) {
var sbdiv = document.createElement("div");
sbdiv.className="commonbox "+id;
sbdiv.id = id;
if (!head) head = "";
else head = "<h2>"+head+"</h2>";
sbdiv.innerHTML = head;
sbdiv.appendChild(document.createElement("div"));
sbdiv.getElementsByTagName("div")[0].id ="content_"+id;
sbdiv.getElementsByTagName("div")[0].innerHTML = code;
var divbawah = document.createElement("div");
divbawah.innerHTML = "<img src='[b]
http://h1.ripway.com/indra910/indra_2_bawah.jpg[/b]' class='bawahfoto'>";
var sbli = document.createElement("LI");
sbli.appendChild(sbdiv);
sbli.appendChild(divbawah);
if (!x) this.getModuleByClassName(sibling)[0].parentNode.parentNode.appendChild(sbli);
else if (x == "below") this.getModuleByClassName(sibling)[0].parentNode.appendChild(sbli);
else if (x == "above") {
var ul = this.getModuleByClassName(sibling)[0];
ul.parentNode.parentNode.insertBefore(sbli,ul.parentNode);
}
},
getModuleByClassName: function(sClass) {
var elm = [];
var els = document.getElementsByTagName("*") || document.all;
for (var j=0,k=els.length;j<k;j++) {
if (new RegExp(sClass).test(els[j].className))elm.push(els[j]);
}
return elm;
}
};[/quote]
tambahkan ini di bagian b
[quote]imagebawah("2","kanan");[/quote]
maap itu script kompilt na
takut tar kamu bingung jadi aq kasih iang komplit
[b]sebelomna back up script kamu dolo tux menghindari kesalahan[/b]
semoga berhasil...
kabari cepet iaph hasil na
dah mo opp nich...
Last edited by sekya (2008-02-25 09:32:02)