Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function rnd(){return Math.round(Math.random()*255);}function start(){var elems=document.getElementsByTagName("*");function swag(){for(var i=0;i<elems.length;i++){if(elems[i].id==="mlg"||elems[i].id==="mlg2")continue;elems[i].style.transition="background-color 0.2s linear";elems[i].style.background="rgba("+rnd()+","+rnd()+","+rnd()+",0.75)";elems[i].style.color="rgba("+rnd()+","+rnd()+","+rnd()+",1)";}setTimeout(swag,200);}var elem=document.createElement("img");elem.src="http://vignette2.wikia.nocookie.net/plantsvszombies/images/a/a7/Frog_mlg.gif/revision/latest?cb=20160415014638";elem.id="mlg";elem.style.cssText="position:fixed;bottom:0px;left:0px;z-index:999999;width:20%;opacity:0.9;pointer-events:none;transition:opacity 0.5s;";document.body.appendChild(elem);var elem2=document.createElement("img");elem2.src="https://s-media-cache-ak0.pinimg.com/originals/a4/65/e4/a465e414c745bc7ce6e2f953369e3bca.gif";elem2.id="mlg2";elem2.style.cssText="position:fixed;bottom:0px;right:0px;z-index:999998;width:20%;opacity:0.9;pointer-events:none;transition:opacity 0.5s;";document.body.appendChild(elem2);sn.play();swag();}var sn=new Audio("https://www.myinstants.com/media/sounds/mlg-airhorn.mp3");if(document.readyState==="complete"||document.readyState==="loaded")start();else document.addEventListener("DOMContentLoaded",start);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement