Rain Bookmarklet

Adds rain to the page.
By the way, I made this one myself, so I just put my web site as "Source Link".

Source (www.superloach.weebly.com)


Download Bookmarklet:


View Bookmarklet Code:

Bookmarklet Source Code:

javascript%3A%28function%20%28%29%20%7B%20var%20t%20%3D%20%28function%20%28%29%20%7B%20var%20z%20%3D%20navigator.appVersion.toLowerCase%28%29%3B%20z%20%3D%20%28z.indexOf%28%22msie%22%29%20%3E%20-1%29%20%3F%20parseInt%28z.replace%28/.*msie%5B%20%5D/%2C%20%22%22%29.match%28/%5E%5B0-9%5D+/%29%29%20%3A%200%3B%20return%20%7B%20ltIE6%3A%20z%20%3C%3D%206%20%26%26%20z%20%21%3D%200%2C%20ltIE7%3A%20z%20%3C%3D%207%20%26%26%20z%20%21%3D%200%2C%20ltIE8%3A%20z%20%3C%3D%208%20%26%26%20z%20%21%3D%200%2C%20ltIE9%3A%20z%20%3C%3D%209%20%26%26%20z%20%21%3D%200%2C%20ie%3A%20z%20%21%3D%200%2C%20firefox%3A%20window.globalStorage%2C%20opera%3A%20window.opera%2C%20webkit%3A%20%21document.uniqueID%20%26%26%20%21window.opera%20%26%26%20%21window.globalStorage%20%26%26%20window.localStorage%2C%20mobile%3A%20/android%7Ciphone%7Cipad%7Cipod/i.test%28navigator.userAgent.toLowerCase%28%29%29%20%7D%20%7D%29%28%29%3B%20var%20o%20%3D%20%22codes%22%3B%20var%20g%20%3D%20100%3B%20var%20u%20%3D%202%3B%20var%20s%20%3D%2015%3B%20var%20q%20%3D%203%3B%20var%20w%20%3D%201%3B%20var%20v%20%3D%200%3B%20var%20y%20%3D%20%22png%22%3B%20var%20j%20%3D%20%22http%3A//htmlfreecodes.com/%22%3B%20var%20b%20%3D%20j%20+%20o%20+%20%22/%22%3B%20var%20k%20%3D%20document.body%3B%20var%20c%20%3D%20%22giffy_bp_%22%20+%20o%3B%20var%20e%20%3D%20new%20Date%28%29.getTime%28%29%3B%20var%20d%20%3D%2010%3B%20var%20f%20%3D%2020%3B%20var%20l%20%3D%2050%3B%20var%20p%20%3D%201000%3B%20var%20a%20%3D%20false%3B%20var%20r%20%3D%20new%20Array%28%29%3B%20var%20n%20%3D%20new%20Array%28%29%3B%20var%20x%20%3D%200%3B%20var%20h%20%3D%20%7B%20x%3A%200%2C%20y%3A%200%20%7D%3B%20window%5Bc%5D%20%3D%20%7B%20init%3A%20function%20%28%29%20%7B%20for%20%28i%20%3D%200%3B%20i%20%3C%20g%3B%20i++%29%20%7B%20var%20A%20%3D%20document.createElement%28%22div%22%29%3B%20A.style.position%20%3D%20%22fixed%22%3B%20A.style.overflow%20%3D%20%22hidden%22%3B%20A.style.visibility%20%3D%20%22hidden%22%3B%20A.style.top%20%3D%200%3B%20A.style.left%20%3D%200%3B%20A.style.zIndex%20%3D%20p%20+%20i%3B%20var%20z%20%3D%20document.createElement%28%22img%22%29%3B%20z.style.border%20%3D%20%220%22%3B%20A.appendChild%28z%29%3B%20k.appendChild%28A%29%3B%20r%5Bi%5D%20%3D%20%7B%20obj%3A%20A%2C%20img%3A%20z%2C%20action%3A%200%2C%20from%3A%20h%2C%20to%3A%20h%2C%20begin%3A%200%2C%20duration%3A%200%20%7D%20%7D%20for%20%28i%20%3D%200%3B%20i%20%3C%20u%3B%20i++%29%20%7B%20n%5Bi%5D%20%3D%20new%20Image%28%29%3B%20n%5Bi%5D.src%20%3D%20b%20+%20%22b%22%20+%20%28i%20+%201%29%20+%20%22.%22%20+%20y%20+%20%28v%20%3D%3D%201%20%3F%20%22%3F%22%20+%20e%20%3A%20%22%22%29%20%7D%20m.action%28%29%3B%20x%20%3D%20setInterval%28m.action%2C%20d%29%20%7D%2C%20action%3A%20function%20%28%29%20%7B%20if%20%28%21a%29%20%7B%20for%20%28C%20%3D%200%3B%20C%20%3C%20u%3B%20C++%29%20%7B%20if%20%28n%5BC%5D.height%20%3D%3D%200%29%20%7B%20return%20%7D%20%7D%20a%20%3D%20true%20%7D%20var%20A%20%3D%20%7B%20height%3A%20m.getViewHeight%28%29%2C%20width%3A%20m.getViewWidth%28%29%2C%20top%3A%200%2C%20bottom%3A%20m.getViewHeight%28%29%20%7D%3B%20for%20%28var%20C%20%3D%200%3B%20C%20%3C%20g%3B%20C++%29%20%7B%20switch%20%28r%5BC%5D.action%29%20%7B%20case%200%3A%20if%20%28m.getRandomNum%28l%29%20%3D%3D%200%29%20%7B%20var%20B%20%3D%20n%5Bm.getRandomNum%28u%29%5D%3B%20r%5BC%5D.img.src%20%3D%20B.src%3B%20var%20z%20%3D%20m.getRandomNum%28A.width%20-%20B.width%29%3B%20r%5BC%5D.from%20%3D%20%7B%20x%3A%20z%2C%20y%3A%200%20%7D%3B%20r%5BC%5D.to%20%3D%20%7B%20x%3A%20z%2C%20y%3A%20A.height%20%7D%3B%20r%5BC%5D.begin%20%3D%20new%20Date%28%29%20-%200%3B%20r%5BC%5D.duration%20%3D%20A.height%20*%20f%20/%20s%3B%20if%20%28q%20%3E%200%29%20%7B%20r%5BC%5D.duration%20*%3D%20%281%20+%20%280.1%20*%20%28m.getRandomNum%282%29%20%3D%3D%200%20%3F%201%20%3A%20-1%29%20*%20m.getRandomNum%28q%29%29%29%20%7D%20r%5BC%5D.action%20%3D%201%3B%20m.move%28r%5BC%5D.obj%2C%20r%5BC%5D.from%29%3B%20m.setVisible%28r%5BC%5D.obj%29%20%7D%20break%3B%20case%201%3A%20var%20D%20%3D%20new%20Date%28%29%20-%20r%5BC%5D.begin%3B%20if%20%28D%20%3C%20r%5BC%5D.duration%29%20%7B%20m.move%28r%5BC%5D.obj%2C%20m.easingPos%28D%2C%20r%5BC%5D.from%2C%20r%5BC%5D.to%2C%20r%5BC%5D.duration%29%29%20%7D%20else%20%7B%20m.setHidden%28r%5BC%5D.obj%29%3B%20r%5BC%5D.action%20%3D%200%20%7D%20break%20%7D%20%7D%20%7D%2C%20getRandomNum%3A%20function%20%28z%29%20%7B%20return%20Math.floor%28Math.random%28%29%20*%20z%29%20%7D%2C%20getViewHeight%3A%20function%20%28%29%20%7B%20if%20%28window.innerHeight%29%20%7B%20return%20window.innerHeight%20%7D%20if%20%28document.documentElement%20%26%26%20document.documentElement.clientHeight%29%20%7B%20return%20document.documentElement.clientHeight%20%7D%20else%20%7B%20if%20%28document.body%20%26%26%20document.body.clientHeight%29%20%7B%20return%20document.body.clientHeight%20%7D%20%7D%20return%200%20%7D%2C%20getViewWidth%3A%20function%20%28%29%20%7B%20if%20%28window.innerWidth%29%20%7B%20return%20window.innerWidth%20%7D%20if%20%28document.documentElement%20%26%26%20document.documentElement.clientWidth%29%20%7B%20return%20document.documentElement.clientWidth%20%7D%20else%20%7B%20if%20%28document.body%20%26%26%20document.body.clientWidth%29%20%7B%20return%20document.body.clientWidth%20%7D%20%7D%20return%200%20%7D%2C%20getViewTop%3A%20function%20%28%29%20%7B%20if%20%28window.scrollY%29%20%7B%20return%20window.scrollY%20%7D%20if%20%28window.pageYOffset%29%20%7B%20return%20window.pageYOffset%20%7D%20if%20%28document.documentElement%20%26%26%20document.documentElement.scrollTop%29%20%7B%20return%20document.documentElement.scrollTop%20%7D%20else%20%7B%20if%20%28document.body%20%26%26%20document.body.scrollTop%29%20%7B%20return%20document.body.scrollTop%20%7D%20%7D%20return%200%20%7D%2C%20getViewBottom%3A%20function%20%28%29%20%7B%20return%20m.getViewTop%28%29%20+%20m.getViewHeight%28%29%20%7D%2C%20getViewLeft%3A%20function%20%28%29%20%7B%20if%20%28window.scrollX%29%20%7B%20return%20window.scrollX%20%7D%20if%20%28window.pageXOffset%29%20%7B%20return%20window.pageXOffset%20%7D%20if%20%28document.documentElement%20%26%26%20document.documentElement.scrollLeft%29%20%7B%20return%20document.documentElement.scrollLeft%20%7D%20else%20%7B%20if%20%28document.body%20%26%26%20document.body.scrollLeft%29%20%7B%20return%20document.body.scrollLeft%20%7D%20%7D%20return%200%20%7D%2C%20getViewRight%3A%20function%20%28%29%20%7B%20return%20m.getViewLeft%28%29%20+%20m.getViewWidth%28%29%20%7D%2C%20easing%3A%20function%20%28A%2C%20C%2C%20B%2C%20z%29%20%7B%20return%20%28B%20-%20C%29%20*%20A%20/%20z%20+%20C%20%7D%2C%20easingPos%3A%20function%20%28A%2C%20C%2C%20B%2C%20z%29%20%7B%20return%20%7B%20x%3A%20m.easing%28A%2C%20C.x%2C%20B.x%2C%20z%29%2C%20y%3A%20m.easing%28A%2C%20C.y%2C%20B.y%2C%20z%29%20%7D%20%7D%2C%20move%3A%20function%20%28z%2C%20A%29%20%7B%20z.style.top%20%3D%20A.y%20+%20%22px%22%3B%20z.style.left%20%3D%20A.x%20+%20%22px%22%20%7D%2C%20setHidden%3A%20function%20%28z%29%20%7B%20z.style.visibility%20%3D%20%22hidden%22%20%7D%2C%20setVisible%3A%20function%20%28z%29%20%7B%20z.style.visibility%20%3D%20%22visible%22%20%7D%20%7D%3B%20var%20m%20%3D%20window%5Bc%5D%3B%20m.init%28%29%20%7D%29%28%29%3B


Rate it:


Tags:

Comments

Comments so far. Add yours.