[b]all[/b]
di shoutout gw pake miniview tp letaknya
gk ditengah gimana supaya ketengah yagh...
view deh fs gw..
ni script yg gw pake.. kira" dimana pengaturanya yagh
[spoiler]//Mini Viewer
if (!attachOnLoadHandler(function() { viewerShoutout();})) window.onload = function() { viewerShoutout();};
function viewerShoutout() {
if(pageViewerID!="") MAINPIC.init();
}
if (typeof MAINPIC == "undefined") { MAINPIC = {}; }
MAINPIC = {
photo: [], sibling: document.getElementById("cpShoutoutBox"),
info: {
photo: null
},
regexp: {
photo: /imgblock200"><a[^@]*?>([^@]+?)<\/a><\/div>/i
},
init: function() {
this.ajaxRequest("/"+pageViewerID,"MAINPIC.viewer",null);
},
viewer: function(ph) {
if (ph.replace(/^\s*|\s*$/g,"") === "") {
alert("VMP Error: Unable to parse the photo!");
return;
}else if (ph) {
try {
this.info.photo = new RegExp(this.regexp.photo).exec(ph)[1].replace(/^(\d)$/,"0$1");
this.photo = document.createElement("DIV");
this.photo.setAttribute("id","mainpic");
this.photo.setAttribute("bottom","center");
this.photo.innerHTML = "<center><font face=\"Arial\" color=\"#086989\">kesuksesan bukan dari hasil melainkan dari prosesnya</font><br>"+
"<a href=\"/"+pageViewerID+"\" target=\"_blank\" title=\""+pageViewerFName+"\">"+this.info.photo+"</a><br>"+
"<font face=\"Arial\" color=\"#086989\">"+pageViewerFName+"</font>";
this.sibling.parentNode.replaceChild(this.photo,this.sibling);
}catch(e) {
this.info.photo = "";
}
}
},
ajaxRequest: function(url,ajaxfunc,handler) {
if(handler) handler = ","+handler;
else handler = "";
var httprequest= window.XMLHttpRequest? new XMLHttpRequest():new ActiveXObject("Msxml2.XMLHTTP");
if(ajaxfunc) eval("httprequest.onreadystatechange=function(){if (httprequest.readyState==4) {"+ajaxfunc+"(httprequest.responseText"+handler+");}}");
httprequest.open('GET', url, true);
httprequest.send(null);
}
};[/spoiler]