FriendsterAddictz
Would you like to react to this message? Create an account in a few clicks or log in to continue.



 
HomeHome  portal1portal1  GalleryGallery  SearchSearch  Latest imagesLatest images  Link Rotation  Donate  RegisterRegister  Log inLog in  


Global Announcement

FriendsterAddictz Forum is on-search for Moderators. For more information, click THIS.
Please promote FriendsterAddictz Forum.


 

Floating Viewer Picture

View previous topic View next topic Go down 
Author Message
kmaey
Activated
kmaey

Male
Age : 33 Registration date : 2008-10-25 Number of posts : 20 Location : INDONESIA



Floating Viewer Picture Vide
PostSubject: Floating Viewer Picture   Floating Viewer Picture Icon_minitimeSat Oct 25, 2008 11:47 pm

preview

now copy paste
JS:
Code:
                                    /* FLOATING OBJECT (SHAKIRO214) ----------------------------- */

dude="<div id='divStayTopLeft' style='position:absolute;z-index:50;'><div id='mainpic'></div></div>";

flow=document.getElementById('flo_wrapper');
river=document.createElement("div");
river.innerHTML=dude;
flow.parentNode.insertBefore(river,flow);

//in this part you can change it into "frombottom" or "fromtop"
var verticalpos="frombottom"

function BoyantDiv()
{
    var startX = 15;
    var startY = 170;
    function ml(id)
    {

    if (document.getElementById)
      {
      var wek=document.getElementById(id);
      }
    else if (document.all)
      {
      var wek=document.all[id];
      }
    else
      {
      var wek=document.layers[id];
      }

        if(document.layers)
        {
        wek.style=wek;
        }
        wek.sP = function(x,y) {shino(x,y);};
        function shino(x,y)
        {
        wek.style.left=x;
        wek.style.top=y;
        }
        wek.x = startX;
        if (verticalpos=="fromtop")
          {
          wek.y = startY;
          }
        else{
          if (navigator.appName.indexOf("Netscape") != -1)
          {
          wek.y = pageYOffset + innerHeight;
          }
          else
          {
          wek.y = document.body.scrollTop + document.body.clientHeight;
          }
          wek.y -= startY;
          }
        return wek;
    }
    window.stayTopLeft = function () {boyant();};
    function boyant()
    {
        if (verticalpos=="fromtop"){

          if (navigator.appName.indexOf("Netscape") != -1)
          {
          var tenten = pageYOffset;
          }
          else
          {
          var tenten = document.body.scrollTop;
          }

          ftlObj.y += (tenten + startY - ftlObj.y)/8;
        }
        else{

          if (navigator.appName.indexOf("Netscape") != -1)
          {
          var tenten = pageYOffset + innerHeight;
          }
          else
          {
          var tenten = document.body.scrollTop + document.body.clientHeight;
          }
          ftlObj.y += (tenten - startY - ftlObj.y)/8;
        }
        ftlObj.sP(ftlObj.x, ftlObj.y);
        wakoko=setTimeout("stayTopLeft()", 50);
    }
    ftlObj = ml("divStayTopLeft");
    stayTopLeft();
}
BoyantDiv();

                                            /* 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);
        }
};

paste in ur js file section C

CSS:
Quote :
#mainpic img {
height: 75px;
width: 65px;
border: 2px #000000 solid;
}

paste this code in ur css file
in color red ur change that image pixel
Back to top Go down
- JoyChristian -
Moderator
- JoyChristian -

Male
Age : 30 Registration date : 2008-07-14 Number of posts : 611 Location :



Floating Viewer Picture Vide
PostSubject: Re: Floating Viewer Picture   Floating Viewer Picture Icon_minitimeSun Oct 26, 2008 7:13 am

wiii thanks f0r this :D
Back to top Go down
kmaey
Activated
kmaey

Male
Age : 33 Registration date : 2008-10-25 Number of posts : 20 Location : INDONESIA



Floating Viewer Picture Vide
PostSubject: Re: Floating Viewer Picture   Floating Viewer Picture Icon_minitimeSun Oct 26, 2008 4:15 pm

ur welcome joycrstian
Back to top Go down
akaisora
FA Newbie
FA Newbie
akaisora

Male
Age : 31 Registration date : 2008-12-25 Number of posts : 1 Location :



Floating Viewer Picture Vide
PostSubject: Re: Floating Viewer Picture   Floating Viewer Picture Icon_minitimeThu Dec 25, 2008 11:31 pm

where i must paste it?
Back to top Go down
tweakerrhenz
Activated
tweakerrhenz


Age : Registration date : 2008-07-14 Number of posts : 5 Location :



Floating Viewer Picture Vide
PostSubject: Re: Floating Viewer Picture   Floating Viewer Picture Icon_minitimeThu Apr 09, 2009 8:32 pm

tnx 4 sharing... but i can't see the preview? is this still working?
Back to top Go down
Sponsored content








Floating Viewer Picture Vide
PostSubject: Re: Floating Viewer Picture   Floating Viewer Picture Icon_minitime

Back to top Go down

Floating Viewer Picture

View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum: You cannot reply to topics in this forum
FriendsterAddictz :: FRIENDSTER SECTION :: Friendster Codes and Tutorials -