Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(document).ready(function() {
  2.     var swidth=screen.width;
  3.     var sheight=screen.height;
  4.     var c1 = 0;
  5.     var c2 = 0;
  6.     function wtf() {
  7.         var timer = Math.floor(Math.random()*400)+600;
  8.         var x = Math.floor(Math.random()*swidth)-50;
  9.         var y = Math.floor(Math.random()*sheight)-50;
  10.         var z = Math.floor(Math.random()*6);
  11.         var shd = Math.floor(Math.random()*8)+4;
  12.         var pick = Math.floor(Math.random()*3);
  13.         var $which;
  14.         if (pick==0) {
  15.             $which = $(".wtf");
  16.             }
  17.         else if (pick==1) {
  18.             $which = $(".omg");
  19.             }
  20.         else {
  21.             $which = $(".fff");
  22.             }
  23.         shd = "2px 2px "+shd+"px #ffffff";
  24.         var u;
  25.         $which.css("z-index", z);
  26.         $which.css("opacity", Math.random());
  27.         $which.css("text-shadow", shd);
  28.         $which.animate({
  29.             top: y+"px",
  30.             left: x+"px"
  31.             }, 600);
  32.         u = setTimeout(wtf, timer);
  33.         }
  34.     $("#profile-container").mouseover(function(){
  35.             timedCount();
  36.             wtf();
  37.         }
  38.     });
  39.     });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement