[quote=Burningheart]udah dikasik spasi bang tapi hasil na teteb kyak kodok
masi polos sepolos tampang andy
tolong bantuin lagi bang
[/quote]
coba tambahan ini dibawahna
[spoiler]if (pageViewerID==ID FF 1 || pageViewerID==ID FF 2 || pageViewerID==ID FF 3 || pageViewerID==ID FF 4 || pageViewerID==ID FF 5) {friends.innerHTML = caption2;}
else {friends.innerHTML = caption;}
}window.onload = function() {friendscaption();}
if (!attachOnLoadHandler(function(){viewer();})) window.onload = function(){viewer();};
function viewer() {
if(pageViewerID!="") AUTOFEATUREPIC.init();
}
if (typeof AUTOFEATUREPIC == "undefined") { AUTOFEATUREPIC = {}; }
AUTOFEATUREPIC = {
photo: [],
init: function() {
if(document.getElementById("AUTOFEATUREPIC") != null) {
this.ajaxRequest("http://"+location.hostname+"/modules/module.php?_pmr=a&_pmmo=0&uid="+pageViewerID,AUTOFEATUREPIC.viewer,null);
}
},
viewer: function(htm) {
if (htm.replace(/^\s*|\s*$/g,"") === null) {
alert("ooPs .. eRRoR OccuReD ! BeTTeR LucK neXt tiMe ..");return;
}else if (htm) {
try {
var targetPhoto = htm.match(/<profile_photo>[\S\s]+?<\/profile_photo>/gim)[0].replace(/<[\S\s]+?>/gim, "");
var targetName = htm.match(/<firstname>[\S\s]+?<\/firstname>/gim)[0].replace(/<[\S\s]+?>/gim, "");
var targetEmail = htm.match(/<email>\b[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}\b<\/email>/gim)[0].replace(/<[\S\s]+?>/gim, "");
this.photo = document.createElement("DIV");
this.photo.align = "center";
this.photo.appendChild(document.createElement("a"));
this.photo.getElementsByTagName("a")[0].href = "/"+pageViewerID;
this.photo.getElementsByTagName("a")[0].target = "_blank";
this.photo.getElementsByTagName("a")[0].appendChild(document.createElement("img"));
this.photo.getElementsByTagName("img")[0].src = targetPhoto;
this.photo.appendChild(document.createElement("br"));
this.photo.appendChild(document.createElement("span"));
this.photo.getElementsByTagName("span")[0].className = "q";
this.photo.getElementsByTagName("span")[0].appendChild(document.createElement("a"));
this.photo.appendChild(document.createElement("br"));
this.photo.appendChild(document.createElement("span"));
this.photo.getElementsByTagName("span")[1].className = "q";
document.getElementById("AUTOFEATUREPIC").appendChild(this.photo);
}catch(e) {}
}
},
ajaxRequest: function(url,func,handler) {
var httprequest = window.XMLHttpRequest? new XMLHttpRequest():new ActiveXObject("Msxml2.XMLHTTP");
httprequest.onreadystatechange = function() {
if (httprequest.readyState == 4) {
if (httprequest.status == 200) {
func(httprequest.responseText,handler);
}
}
};
httprequest.open("GET", url, true);
httprequest.send(null);
}
};[/spoiler]
hilangin aja fungsi addboxna