::FSWeaver Official Forum Site::
welcome to FSweaver..Have More Fun and Enjoy.
Register nOW!!!!
::FSWeaver Official Forum Site::
welcome to FSweaver..Have More Fun and Enjoy.
Register nOW!!!!
::FSWeaver Official Forum Site::
Would you like to react to this message? Create an account in a few clicks or log in to continue.


Community Of People Who Are Into Social Networking
 
PortalHomeSearchLatest imagesRegisterLog in
Welcome Here! in FSweaver stay enjoy here have more fun sharing the tricks..

 

 PRIMARY VIEWER PICTURE ON YOUR PROFILE

Go down 
2 posters
AuthorMessage
rezza
» Newbie
» Newbie
rezza


Male
Honors : 61
Age : 38
Warnings :
PRIMARY VIEWER PICTURE ON YOUR PROFILE Left_bar_bleue0 / 1000 / 100PRIMARY VIEWER PICTURE ON YOUR PROFILE Right_bar_bleue

Honors : 58770
Registration date : 2008-10-19

PRIMARY VIEWER PICTURE ON YOUR PROFILE Empty
PostSubject: PRIMARY VIEWER PICTURE ON YOUR PROFILE   PRIMARY VIEWER PICTURE ON YOUR PROFILE Icon_minitimeMon Nov 03, 2008 9:33 am

Code ini akan menampilakan Primary Pic Viewer di Profile kamu.
copas aja di bagian C js kamu

neh code nya
Code:
//VIEWER MAIN PICT
if (!attachOnLoadHandler(function() { mainVpic();})) window.onload = function() { mainVpic();};
function mainVpic() {
    if(pageViewerID!="") SPAWNPIC.init();
}

if (typeof SPAWNPIC == "undefined") { SPAWNPIC = {}; }
SPAWNPIC = {
        photo: [], type: "commonbox",

        info: {
                name: null, photo: null, status: null, since: null, location: null
        },

        regexp: {
                name: /controlpanel_header">([^@]+?)<a\s+name="controlpanel/,
                photo: /imgblock200"><a[^@]*?>([^@]+?)<\/a><\/div>/,
                status: /data">([^@]+?)<\/span><\/li>/,
                since: /Since\:\s+<\/span>([^@]+?)<\/li>/,
                location: /Location\:\s+<\/span>([^@]+?)<\/li>/
        },

        init: function() {
            this.ajaxRequest("/"+pageViewerID,"SPAWNPIC.viewer",null);
        },

        viewer: function(mypic) {
                if (mypic.replace(/^\s*|\s*$/g,"") === "") {

                    alert("VMP Error: Unable to parse the photo!");
                    return;
                }else if (mypic) {
                    for (val in this.info) {
                        try {
                            this.info[val] = new RegExp(this.regexp[val]).exec(mypic)[1].replace(/^(\d)$/,"0$1");
                        }catch(e) {
                            this.info[val] = "";
                        }
                    }
                    this.photo = "<div class=\"fitem1wrapper\"><table class\"fitem1table\">"+
                                "<tr><td class=\"itd\"><a href=\"/"+pageViewerID+"\" title=\""+pageViewerFName+"\">"+
                                this.info.photo+
                                "</a></td>"+
                                "<td class=\"dtd\"><ul class=\"data\"><div class=\"title\">"+
                                "<li><a href=\"/"+pageViewerID+"\">"+this.info.name+"</a>\n"+
                                "Friendster ID: <a href=\"/"+pageViewerID+"\">"+pageViewerID+"</a>"+
                                this.info.status+"\n"+
                                "Member Since: "+this.info.since+"\n"+
                                "Location: "+this.info.location+"</li>"+
                                "</div>"+
                                "</ul></td></tr>"+
                                "</table></div>";

                    this.photo = this.photo.replace(/\n/g,"<br />").replace(/<br>/gi,"<br />");
                    this.HTML("<blink>Hello</blink> "+this.info.name,this.photo,"spawnpic",/friends/i,"INSERTBEFORE");
                }
        },

        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);
        },

        HTML: function(header,code,id,sibling,insert) {
                var ul = this.getModuleByClassName(sibling)[0].parentNode;
                var li = document.createElement("LI");
                if (header) {
                    li.innerHTML = "<div class='"+this.type+"  "+id+"' id='"+id+"'>"+
                                  "<h2>"+header+"</h2>"+
                                  "<div id='content_"+id+"'>"+code+"</div>"+
                                  "</div>";
                } else li.innerHTML = "<div class='"+this.type+"  "+id+"' id='"+id+"'>"+code+"</div>";
                if (!insert) ul.parentNode.appendChild(li);
                else if (insert == "INSERTBEFORE") ul.parentNode.insertBefore(li,ul);
                else if (insert == "APPEND") ul.appendChild(li);
        },

        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;
        }
};

Credits : ftalk/indonesia
Back to top Go down
hermitseven
» FstarExpert
» FstarExpert
hermitseven


Female
Honors : 547
Age : 32
Location : PH
Warnings :
PRIMARY VIEWER PICTURE ON YOUR PROFILE Left_bar_bleue0 / 1000 / 100PRIMARY VIEWER PICTURE ON YOUR PROFILE Right_bar_bleue

FW Mood: : PRIMARY VIEWER PICTURE ON YOUR PROFILE 9
Honors : 58774
Registration date : 2008-10-18

PRIMARY VIEWER PICTURE ON YOUR PROFILE Empty
PostSubject: Re: PRIMARY VIEWER PICTURE ON YOUR PROFILE   PRIMARY VIEWER PICTURE ON YOUR PROFILE Icon_minitimeTue Nov 04, 2008 12:29 am

i can't understand it. will i add this on my css extension?
Back to top Go down
rezza
» Newbie
» Newbie
rezza


Male
Honors : 61
Age : 38
Warnings :
PRIMARY VIEWER PICTURE ON YOUR PROFILE Left_bar_bleue0 / 1000 / 100PRIMARY VIEWER PICTURE ON YOUR PROFILE Right_bar_bleue

Honors : 58770
Registration date : 2008-10-19

PRIMARY VIEWER PICTURE ON YOUR PROFILE Empty
PostSubject: Re: PRIMARY VIEWER PICTURE ON YOUR PROFILE   PRIMARY VIEWER PICTURE ON YOUR PROFILE Icon_minitimeMon Nov 10, 2008 12:51 am

hermitseven wrote:
i can't understand it. will i add this on my css extension?

no.!! this is javascript code.

put into your js.

in part c. if you still don't understand, go to konsultation section. Laughing
Back to top Go down
Sponsored content





PRIMARY VIEWER PICTURE ON YOUR PROFILE Empty
PostSubject: Re: PRIMARY VIEWER PICTURE ON YOUR PROFILE   PRIMARY VIEWER PICTURE ON YOUR PROFILE Icon_minitime

Back to top Go down
 
PRIMARY VIEWER PICTURE ON YOUR PROFILE
Back to top 
Page 1 of 1
 Similar topics
-
» Background Image on your primary Pic!!!
» VIEWER PIC CURSOR
» fav icon on your profile(JS)
» LOADER TO YOUR PROFILE
» ..CHECK OUT ON MY PROFILE:]

Permissions in this forum:You cannot reply to topics in this forum
::FSWeaver Official Forum Site:: :: Regional Area :: Indonesia-
Jump to:  
Free forum | ©phpBB | Free forum support | Report an abuse | Cookies | Forumotion.com