Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function() {
- var swidth=screen.width;
- var sheight=screen.height;
- var c1 = 0;
- var c2 = 0;
- function wtf() {
- var timer = Math.floor(Math.random()*400)+600;
- var x = Math.floor(Math.random()*swidth)-50;
- var y = Math.floor(Math.random()*sheight)-50;
- var z = Math.floor(Math.random()*6);
- var shd = Math.floor(Math.random()*8)+4;
- var pick = Math.floor(Math.random()*3);
- var $which;
- if (pick==0) {
- $which = $(".wtf");
- }
- else if (pick==1) {
- $which = $(".omg");
- }
- else {
- $which = $(".fff");
- }
- shd = "2px 2px "+shd+"px #ffffff";
- var u;
- $which.css("z-index", z);
- $which.css("opacity", Math.random());
- $which.css("text-shadow", shd);
- $which.animate({
- top: y+"px",
- left: x+"px"
- }, 600);
- u = setTimeout(wtf, timer);
- }
- $("#profile-container").mouseover(function(){
- timedCount();
- wtf();
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement