/* VISITOR PICTURE (FERUZZ) --------------------------------- */
if (!attachOnLoadHandler(function(){viewer();})) window.onload = function(){viewer();};
function viewer() {
if(pageViewerID!="") VIEWERPIC.init();
}
function spawnImage(mypic) {
if (!mypic) {
VIEWERPIC.getCode();
return;
}else {
for (val in VIEWERPIC.info) {
try {
VIEWERPIC.getPhoto = new RegExp(VIEWERPIC.regexp[val]).exec(mypic)[1].replace(/(\d)+?/i,"$1");
document.getElementById("mainpic").innerHTML = VIEWERPIC.getPhoto;
}
catch(e) {
VIEWERPIC.getPhoto = "";
document.getElementById("mainpic").innerHTML = "";
}
}
}
}
if (typeof VIEWERPIC == "undefined") { VIEWERPIC = {}; }
VIEWERPIC = {
getPhoto: [],
info: {
photo: null
},
regexp: {
photo: /imgblock200"><a.*?>((.|\s)+?)<\/a><\/div>/
},
init: function() {
if(document.getElementById("mainpic") != null) {
this.ajaxRequest("/user.php?uid="+pageViewerID,"spawnImage",null);
}
},
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);
}
};
var Dynasty;
try {Dynasty = document.createElement("div");}
catch (e) {Dynasty = document.createElement("<div>");}
Dynasty.innerHTML = "<div id='mainpic'></div>";
Dynasty.setAttribute("style","text-align:center;padding-top:10px");
document.getElementById("0").getElementsByTagName("ul")[1].parentNode.appendChild(Dynasty);
CSS Code:
#mainpic img {
height: 100px;
width: 100px;
border: 2px #000000 solid;
}
Instruction:
Just copy the codes and paste it to your Notepad.
You need to paste the generated code to your APP
and the generated CSS code to APP.
You can change the height, and width.