Advertisement
reges007

player

Jul 9th, 2017
1,863
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     var ns = (navigator.appName.indexOf("Netscape") != -1);
  2.     var d = document;
  3.     var px = document.layers ? "" : "px";
  4.     function JSFX_FloatDiv(id, sx, sy)
  5.     {
  6.         var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
  7.         window[id + "_obj"] = el;
  8.         if(d.layers)el.style=el;
  9.         el.cx = el.sx = sx;el.cy = el.sy = sy;
  10.         el.sP=function(x,y){this.style.left=x+px;this.style.top=y+px;};
  11.         el.flt=function()
  12.         {
  13.             var pX, pY;
  14.             pX = (this.sx >= 0) ? 0 : ns ? innerWidth :
  15.             document.documentElement && document.documentElement.clientWidth ?
  16.             document.documentElement.clientWidth : document.body.clientWidth;
  17.             pY = ns ? pageYOffset : document.documentElement && document.documentElement.scrollTop ?
  18.             document.documentElement.scrollTop : document.body.scrollTop;
  19.             if(this.sy<0)
  20.             pY += ns ? innerHeight : document.documentElement && document.documentElement.clientHeight ?
  21.             document.documentElement.clientHeight : document.body.clientHeight;
  22.             this.cx += (pX + this.sx - this.cx)/8;this.cy += (pY + this.sy - this.cy)/8;
  23.             this.sP(this.cx, this.cy);
  24.             setTimeout(this.id + "_obj.flt()", 40);
  25.         }
  26.         return el;
  27.     }
  28.     jQuery( document ).ready(function() {
  29.     JSFX_FloatDiv("divBottomRight", -330, -60).flt();
  30.     });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement